[polly] r314412 - Fix the build after r314375
Philip Pfaffe via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 28 05:20:24 PDT 2017
Author: pfaffe
Date: Thu Sep 28 05:20:24 2017
New Revision: 314412
URL: http://llvm.org/viewvc/llvm-project?rev=314412&view=rev
Log:
Fix the build after r314375
r314375 privatized Loop's constructor and replaced it with an Allocator.
Modified:
polly/trunk/include/polly/ScopPass.h
polly/trunk/lib/Analysis/ScopPass.cpp
polly/trunk/lib/CodeGen/LoopGenerators.cpp
Modified: polly/trunk/include/polly/ScopPass.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopPass.h?rev=314412&r1=314411&r2=314412&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopPass.h (original)
+++ polly/trunk/include/polly/ScopPass.h Thu Sep 28 05:20:24 2017
@@ -191,7 +191,7 @@ public:
InvalidateCurrentScop = true;
Worklist.erase(&S.getRegion());
- SAM.clear(S);
+ SAM.clear(S, S.getName());
}
private:
Modified: polly/trunk/lib/Analysis/ScopPass.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopPass.cpp?rev=314412&r1=314411&r2=314412&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopPass.cpp (original)
+++ polly/trunk/lib/Analysis/ScopPass.cpp Thu Sep 28 05:20:24 2017
@@ -106,7 +106,7 @@ bool ScopAnalysisManagerFunctionProxy::R
for (auto &S : *SI)
if (auto *scop = S.second.get())
if (InnerAM)
- InnerAM->clear(*scop);
+ InnerAM->clear(*scop, scop->getName());
InnerAM = nullptr;
return true; // Invalidate the proxy result as well.
Modified: polly/trunk/lib/CodeGen/LoopGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/LoopGenerators.cpp?rev=314412&r1=314411&r2=314412&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/LoopGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/LoopGenerators.cpp Thu Sep 28 05:20:24 2017
@@ -74,7 +74,7 @@ Value *polly::createLoop(Value *LB, Valu
// Update LoopInfo
Loop *OuterLoop = LI.getLoopFor(BeforeBB);
- Loop *NewLoop = new Loop();
+ Loop *NewLoop = LI.AllocateLoop();
if (OuterLoop)
OuterLoop->addChildLoop(NewLoop);
More information about the llvm-commits
mailing list