[PATCH] D18625: [Speculation] Add a SpeculativeExecution mode where the pass does nothing unless TTI::hasBranchDivergence() is true.

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 30 15:12:33 PDT 2016


tra added inline comments.

================
Comment at: lib/Transforms/Scalar/SpeculativeExecution.cpp:272
@@ +271,3 @@
+
+FunctionPass *createSpeculativeExecutionIfHasBranchDivergencePass() {
+  return new SpeculativeExecution(ONLY_IF_DIVERGENT_ARCH);
----------------
Could we pass an argument to createSpeculativeExecutionPass() instead of encoding it in the name?


http://reviews.llvm.org/D18625





More information about the llvm-commits mailing list