File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,6 @@ bool SpeculativeExecutionLegacyPass::runOnFunction(Function &F) {
149149 return Impl.runImpl (F, TTI);
150150}
151151
152- namespace llvm {
153-
154152bool SpeculativeExecutionPass::runImpl (Function &F, TargetTransformInfo *TTI) {
155153 if (OnlyIfDivergentTarget && !TTI->hasBranchDivergence (&F)) {
156154 LLVM_DEBUG (dbgs () << " Not running SpeculativeExecution because "
@@ -328,11 +326,11 @@ bool SpeculativeExecutionPass::considerHoistingFromTo(
328326 return true ;
329327}
330328
331- FunctionPass *createSpeculativeExecutionPass () {
329+ FunctionPass *llvm:: createSpeculativeExecutionPass () {
332330 return new SpeculativeExecutionLegacyPass ();
333331}
334332
335- FunctionPass *createSpeculativeExecutionIfHasBranchDivergencePass () {
333+ FunctionPass *llvm:: createSpeculativeExecutionIfHasBranchDivergencePass () {
336334 return new SpeculativeExecutionLegacyPass (/* OnlyIfDivergentTarget = */ true );
337335}
338336
@@ -362,4 +360,3 @@ void SpeculativeExecutionPass::printPipeline(
362360 OS << " only-if-divergent-target" ;
363361 OS << ' >' ;
364362}
365- } // namespace llvm
You can’t perform that action at this time.
0 commit comments