[flang-commits] [clang] [flang] [flang][Driver] Preliminary support for -ftime-report (PR #107270)
via flang-commits
flang-commits at lists.llvm.org
Thu Jan 9 04:52:16 PST 2025
================
@@ -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
More information about the flang-commits
mailing list