summaryrefslogtreecommitdiffstats
path: root/polly/lib/Transform/CodePreparation.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-17 14:16:56 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-17 14:16:56 +0000
commitf557987b155cc9bf88ad1e497cf796b3c193d12e (patch)
treedba79273edb486e3a0647172843de890d9339022 /polly/lib/Transform/CodePreparation.cpp
parent4f8f307c77fa5b4de2eec8868b8734b2ab93dd22 (diff)
downloadbcm5719-llvm-f557987b155cc9bf88ad1e497cf796b3c193d12e.tar.gz
bcm5719-llvm-f557987b155cc9bf88ad1e497cf796b3c193d12e.zip
[PM] Update Polly following LLVM r226373 which refactors LoopInfo in
preparation for the new pass manager. llvm-svn: 226374
Diffstat (limited to 'polly/lib/Transform/CodePreparation.cpp')
-rw-r--r--polly/lib/Transform/CodePreparation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/lib/Transform/CodePreparation.cpp b/polly/lib/Transform/CodePreparation.cpp
index 67e111bb0bd..5847c695968 100644
--- a/polly/lib/Transform/CodePreparation.cpp
+++ b/polly/lib/Transform/CodePreparation.cpp
@@ -191,17 +191,17 @@ bool CodePreparation::eliminatePHINodes(Function &F) {
}
void CodePreparation::getAnalysisUsage(AnalysisUsage &AU) const {
- AU.addRequired<LoopInfo>();
+ AU.addRequired<LoopInfoWrapperPass>();
AU.addRequired<ScalarEvolution>();
- AU.addPreserved<LoopInfo>();
+ AU.addPreserved<LoopInfoWrapperPass>();
AU.addPreserved<RegionInfoPass>();
AU.addPreserved<DominatorTreeWrapperPass>();
AU.addPreserved<DominanceFrontier>();
}
bool CodePreparation::runOnFunction(Function &F) {
- LI = &getAnalysis<LoopInfo>();
+ LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
SE = &getAnalysis<ScalarEvolution>();
splitEntryBlockForAlloca(&F.getEntryBlock(), this);
@@ -222,6 +222,6 @@ Pass *polly::createCodePreparationPass() { return new CodePreparation(); }
INITIALIZE_PASS_BEGIN(CodePreparation, "polly-prepare",
"Polly - Prepare code for polly", false, false)
-INITIALIZE_PASS_DEPENDENCY(LoopInfo)
+INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass)
INITIALIZE_PASS_END(CodePreparation, "polly-prepare",
"Polly - Prepare code for polly", false, false)
OpenPOWER on IntegriCloud