diff options
author | Andreas Simbuerger <simbuerg@fim.uni-passau.de> | 2017-06-26 12:17:11 +0000 |
---|---|---|
committer | Andreas Simbuerger <simbuerg@fim.uni-passau.de> | 2017-06-26 12:17:11 +0000 |
commit | 256070d85c65edddd6d7601b317e9768267321fb (patch) | |
tree | a7cf955c0c49a5eddf1b737f94b005d80884dd83 /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
parent | 113a59e7db394ba54dafb1e2aafd46d13b212980 (diff) | |
download | bcm5719-llvm-256070d85c65edddd6d7601b317e9768267321fb.tar.gz bcm5719-llvm-256070d85c65edddd6d7601b317e9768267321fb.zip |
[NFC] Return both polly.start and polly.exiting from executeScopConditionally.
This commit returns both the start and the exit block that are created
by executeScopConditionally.
In a future commit we will make use of the exit block. Before we would
have to use the implicit property that there won't be any code generated
between polly.start and polly.exiting at the time of use to find the
correct block ('polly.exiting').
All usage location are semantically unchanged.
llvm-svn: 306283
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index cff500e3bd9..02b40161503 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -2663,8 +2663,9 @@ public: // the SCEVExpander may introduce while code generating the parameters and // which may introduce scalar dependences that prevent us from correctly // code generating this scop. - BasicBlock *StartBlock = + BBPair StartExitBlocks = executeScopConditionally(*S, Builder.getTrue(), *DT, *RI, *LI); + BasicBlock *StartBlock = std::get<0>(StartExitBlocks); GPUNodeBuilder NodeBuilder(Builder, Annotator, *DL, *LI, *SE, *DT, *S, StartBlock, Prog, Runtime, Architecture); |