[PATCH] D43872: [Polly][Acc] Fix for PR33208
Philip Pfaffe via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 08:12:43 PST 2018
philip.pfaffe updated this revision to Diff 136297.
philip.pfaffe added a comment.
My bad, I uploaded the reverse diff ...
https://reviews.llvm.org/D43872
Files:
polly/lib/CodeGen/PPCGCodeGeneration.cpp
Index: polly/lib/CodeGen/PPCGCodeGeneration.cpp
===================================================================
--- polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -1557,20 +1557,16 @@
}
void GPUNodeBuilder::clearScalarEvolution(Function *F) {
- for (BasicBlock &BB : *F) {
- Loop *L = LI.getLoopFor(&BB);
+ for (auto *L : LI)
if (L)
SE.forgetLoop(L);
- }
}
void GPUNodeBuilder::clearLoops(Function *F) {
- for (BasicBlock &BB : *F) {
- Loop *L = LI.getLoopFor(&BB);
- if (L)
- SE.forgetLoop(L);
- LI.removeBlock(&BB);
- }
+ clearScalarEvolution(F);
+ SmallVector<Loop *, 1> Loops(LI.begin(), LI.end());
+ for (auto *L : Loops)
+ LI.erase(L);
}
std::tuple<Value *, Value *> GPUNodeBuilder::getGridSizes(ppcg_kernel *Kernel) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43872.136297.patch
Type: text/x-patch
Size: 823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/1a201138/attachment.bin>
More information about the llvm-commits
mailing list