From f557987b155cc9bf88ad1e497cf796b3c193d12e Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 17 Jan 2015 14:16:56 +0000 Subject: [PM] Update Polly following LLVM r226373 which refactors LoopInfo in preparation for the new pass manager. llvm-svn: 226374 --- polly/lib/Transform/CodePreparation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'polly/lib/Transform/CodePreparation.cpp') 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(); + AU.addRequired(); AU.addRequired(); - AU.addPreserved(); + AU.addPreserved(); AU.addPreserved(); AU.addPreserved(); AU.addPreserved(); } bool CodePreparation::runOnFunction(Function &F) { - LI = &getAnalysis(); + LI = &getAnalysis().getLoopInfo(); SE = &getAnalysis(); 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) -- cgit v1.2.3