[PATCH] D111095: [fir] Add cfg conversion pass

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 01:10:53 PDT 2021


clementval marked 2 inline comments as done.
clementval added inline comments.


================
Comment at: flang/lib/Optimizer/Transforms/RewriteLoop.cpp:29
+    llvm::cl::desc("force the body of a loop to execute at least once"),
+    llvm::cl::init(false));
+
----------------
mehdi_amini wrote:
> Please replace these with pass options.
Done. 


================
Comment at: flang/lib/Optimizer/Transforms/RewriteLoop.cpp:296
+    if (disableCfgConversion)
+      return;
+
----------------
mehdi_amini wrote:
> This actually really seems like this option does not belong here: if someone wants to disable cfg-conversion in the compiler, then the proper plumbing is to have this option on the pass manager **builder** so that the pass does not get added to the pipeline.
Right it makes more sense. Just removed the option. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111095/new/

https://reviews.llvm.org/D111095



More information about the llvm-commits mailing list