[PATCH] D82735: [PM] Fix new PM to perform SpeculativeExecution as in old PM

Daniil Fukalov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 05:23:34 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1a6cebb4d12c: [PM] Fix new PM to perform SpeculativeExecution as in old PM (authored by dfukalov).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82735

Files:
  llvm/lib/Passes/PassBuilder.cpp


Index: llvm/lib/Passes/PassBuilder.cpp
===================================================================
--- llvm/lib/Passes/PassBuilder.cpp
+++ llvm/lib/Passes/PassBuilder.cpp
@@ -584,7 +584,7 @@
   }
 
   // Speculative execution if the target has divergent branches; otherwise nop.
-  FPM.addPass(SpeculativeExecutionPass());
+  FPM.addPass(SpeculativeExecutionPass(/* OnlyIfDivergentTarget =*/true));
 
   // Optimize based on known information about branches, and cleanup afterward.
   FPM.addPass(JumpThreadingPass());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82735.274434.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200630/d57f3c6b/attachment.bin>


More information about the llvm-commits mailing list