diff options
author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2018-03-03 15:34:49 +0000 |
---|---|---|
committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2018-03-03 15:34:49 +0000 |
commit | 4d50ab86e64e46b92668d7582ce109e0a66db93b (patch) | |
tree | 381804aad494c14a771e628e643fb3041ff7846e /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
parent | 980d0f891928a5795d10aa14e214c98750218f81 (diff) | |
download | bcm5719-llvm-4d50ab86e64e46b92668d7582ce109e0a66db93b.tar.gz bcm5719-llvm-4d50ab86e64e46b92668d7582ce109e0a66db93b.zip |
Revert "[Acc] Fix for PR33208"
This reverts commit r326643. Fix didn't really fix anything.
llvm-svn: 326656
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 2366b5ec2f8..5bf31e60e92 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -1555,16 +1555,20 @@ void GPUNodeBuilder::clearDominators(Function *F) { } void GPUNodeBuilder::clearScalarEvolution(Function *F) { - for (auto *L : LI) + for (BasicBlock &BB : *F) { + Loop *L = LI.getLoopFor(&BB); if (L) SE.forgetLoop(L); + } } void GPUNodeBuilder::clearLoops(Function *F) { - clearScalarEvolution(F); - SmallVector<Loop *, 1> Loops(LI.begin(), LI.end()); - for (auto *L : Loops) - LI.erase(L); + for (BasicBlock &BB : *F) { + Loop *L = LI.getLoopFor(&BB); + if (L) + SE.forgetLoop(L); + LI.removeBlock(&BB); + } } std::tuple<Value *, Value *> GPUNodeBuilder::getGridSizes(ppcg_kernel *Kernel) { |