================
@@ -167,6 +170,31 @@ bool CompilerInstance::executeAction(FrontendAction &act) {
   // Set options controlling lowering to FIR.
   invoc.setLoweringOptions();
 
+  if (invoc.getEnableTimers()) {
+    // FIXME: Currently, enabling these results in a duplicate registration
+    // error of the "sort-timers" command line option. It is not clear why that
+    // is occurring. Without setting these, we cannot get detailed information
+    // about the runtime of the LLVM IR optimization and code generation 
passes.
+    // Once the root cause of this is determined, we should enable this to have
+    // behavior that is comparable to clang.
+    // llvm::TimePassesIsEnabled = true;
----------------
macurtis-amd wrote:

@tarunprabhu #121663 has been merged which fixes the assert you were seeing. 
You should be able to uncomment this line (and remove preceding comment).

https://github.com/llvm/llvm-project/pull/107270
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to