[PATCH] D18626: [PM] Add a SpeculativeExecution pass for targets with divergent branches.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 17:37:51 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL266399: [PM] Add a SpeculativeExecution pass for targets with divergent branches. (authored by jlebar).

Changed prior to commit:
  http://reviews.llvm.org/D18626?vs=52131&id=53825#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D18626

Files:
  llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp

Index: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -234,6 +234,8 @@
   else
     MPM.add(createScalarReplAggregatesPass(-1, false));
   MPM.add(createEarlyCSEPass());              // Catch trivial redundancies
+  // Speculative execution if the target has divergent branches; otherwise nop.
+  MPM.add(createSpeculativeExecutionIfHasBranchDivergencePass());
   MPM.add(createJumpThreadingPass());         // Thread jumps.
   MPM.add(createCorrelatedValuePropagationPass()); // Propagate conditionals
   MPM.add(createCFGSimplificationPass());     // Merge & remove BBs


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18626.53825.patch
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160415/14545183/attachment.bin>


More information about the llvm-commits mailing list