[llvm-branch-commits] [llvm] [RISCV] Support select optimization (PR #80124)

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 18 16:47:08 PDT 2024


================
@@ -101,6 +101,11 @@ static cl::opt<bool> EnableMISchedLoadClustering(
     cl::desc("Enable load clustering in the machine scheduler"),
     cl::init(false));
 
+static cl::opt<bool>
+    EnableSelectOpt("riscv-select-opt", cl::Hidden,
----------------
topperc wrote:

> I think the impact won't be large, since the pass is early out before these analysises actully run when enableSelectOptimize returns false .

The pass manager will run the analysis passes before the runOnFunction in the select optimize pass gets called. Unless those analysis passes do lazy updates and only compute something when they are queried, they will run before the early out.

https://github.com/llvm/llvm-project/pull/80124


More information about the llvm-branch-commits mailing list