[poolalloc] r226397 - Update DSA in response to LoopInfo no longer being a pass.
Will Dietz
wdietz2 at illinois.edu
Sun Jan 18 01:37:41 PST 2015
Author: wdietz2
Date: Sun Jan 18 03:37:41 2015
New Revision: 226397
URL: http://llvm.org/viewvc/llvm-project?rev=226397&view=rev
Log:
Update DSA in response to LoopInfo no longer being a pass.
Modified:
poolalloc/trunk/include/assistDS/TypeChecks.h
poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
poolalloc/trunk/lib/DSA/AllocatorIdentification.cpp
Modified: poolalloc/trunk/include/assistDS/TypeChecks.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/assistDS/TypeChecks.h?rev=226397&r1=226396&r2=226397&view=diff
==============================================================================
--- poolalloc/trunk/include/assistDS/TypeChecks.h (original)
+++ poolalloc/trunk/include/assistDS/TypeChecks.h Sun Jan 18 03:37:41 2015
@@ -102,7 +102,7 @@ public:
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<DataLayoutPass>();
AU.addRequired<DominatorTreeWrapperPass>();
- AU.addRequired<LoopInfo>();
+ AU.addRequired<LoopInfoWrapperPass>();
AU.addRequired<AddressTakenAnalysis>();
}
Modified: poolalloc/trunk/lib/AssistDS/TypeChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TypeChecks.cpp?rev=226397&r1=226396&r2=226397&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TypeChecks.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TypeChecks.cpp Sun Jan 18 03:37:41 2015
@@ -552,7 +552,7 @@ void TypeChecks::optimizeChecks(Module &
if(F.isDeclaration())
continue;
DominatorTree & DT = getAnalysis<DominatorTreeWrapperPass>(F).getDomTree();
- LoopInfo & LI = getAnalysis<LoopInfo>(F);
+ LoopInfo & LI = getAnalysis<LoopInfoWrapperPass>(F).getLoopInfo();
std::deque<DomTreeNode *> Worklist;
Worklist.push_back (DT.getRootNode());
while(Worklist.size()) {
Modified: poolalloc/trunk/lib/DSA/AllocatorIdentification.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/AllocatorIdentification.cpp?rev=226397&r1=226396&r2=226397&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/AllocatorIdentification.cpp (original)
+++ poolalloc/trunk/lib/DSA/AllocatorIdentification.cpp Sun Jan 18 03:37:41 2015
@@ -42,7 +42,7 @@ bool AllocIdentify::flowsFrom(Value *Des
}
if(PHINode *PN = dyn_cast<PHINode>(Dest)) {
Function *F = PN->getParent()->getParent();
- LoopInfo &LI = getAnalysis<LoopInfo>(*F);
+ LoopInfo &LI = getAnalysis<LoopInfoWrapperPass>(*F).getLoopInfo();
// If this is a loop phi, ignore.
if(LI.isLoopHeader(PN->getParent()))
return false;
@@ -189,7 +189,7 @@ bool AllocIdentify::runOnModule(Module&
return false;
}
void AllocIdentify::getAnalysisUsage(AnalysisUsage &AU) const {
- AU.addRequired<LoopInfo>();
+ AU.addRequired<LoopInfoWrapperPass>();
AU.setPreservesAll();
}
More information about the llvm-commits
mailing list