[PATCH] Select elimination pass

Chad Rosier mcrosier at codeaurora.org
Thu Sep 4 11:59:44 PDT 2014


================
Comment at: lib/Transforms/Scalar/SelectElimination.cpp:61
@@ +60,3 @@
+//===----------------------------------------------------------------------===//
+static cl::opt<bool> EnableSE("enable-select-elim",
+                              cl::desc("Enable select elimination"),
----------------
The command-line option should be in the PassManagerBuilder.  Rather than return from the runOnFunction, we should not add the pass to the pass manager.

http://reviews.llvm.org/D5156






More information about the llvm-commits mailing list