diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-08-17 10:57:08 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-08-17 10:57:08 +0000 |
| commit | c5bcf246d134c4af9bd738c3629ce12504bd6db8 (patch) | |
| tree | 95b4a1c3b34d43c28b1ca379855f965cf3b1c686 /polly/lib/Transform | |
| parent | 607b8b26e9ca34ff47ac294f34bbe0b1d170e8e4 (diff) | |
| download | bcm5719-llvm-c5bcf246d134c4af9bd738c3629ce12504bd6db8.tar.gz bcm5719-llvm-c5bcf246d134c4af9bd738c3629ce12504bd6db8.zip | |
Fix Polly after SCEV port to new pass manager
This fixes compilation after LLVM commit r245193.
llvm-svn: 245211
Diffstat (limited to 'polly/lib/Transform')
| -rw-r--r-- | polly/lib/Transform/CodePreparation.cpp | 4 | ||||
| -rw-r--r-- | polly/lib/Transform/IndependentBlocks.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/polly/lib/Transform/CodePreparation.cpp b/polly/lib/Transform/CodePreparation.cpp index 78e256326fb..c76e076c94f 100644 --- a/polly/lib/Transform/CodePreparation.cpp +++ b/polly/lib/Transform/CodePreparation.cpp @@ -66,7 +66,7 @@ CodePreparation::~CodePreparation() { clear(); } void CodePreparation::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfoWrapperPass>(); - AU.addRequired<ScalarEvolution>(); + AU.addRequired<ScalarEvolutionWrapperPass>(); AU.addPreserved<LoopInfoWrapperPass>(); AU.addPreserved<RegionInfoPass>(); @@ -76,7 +76,7 @@ void CodePreparation::getAnalysisUsage(AnalysisUsage &AU) const { bool CodePreparation::runOnFunction(Function &F) { LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo(); - SE = &getAnalysis<ScalarEvolution>(); + SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE(); splitEntryBlockForAlloca(&F.getEntryBlock(), this); diff --git a/polly/lib/Transform/IndependentBlocks.cpp b/polly/lib/Transform/IndependentBlocks.cpp index 97418ea589d..ca4c6494029 100644 --- a/polly/lib/Transform/IndependentBlocks.cpp +++ b/polly/lib/Transform/IndependentBlocks.cpp @@ -477,8 +477,8 @@ void IndependentBlocks::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved<RegionInfoPass>(); AU.addRequired<LoopInfoWrapperPass>(); AU.addPreserved<LoopInfoWrapperPass>(); - AU.addRequired<ScalarEvolution>(); - AU.addPreserved<ScalarEvolution>(); + AU.addRequired<ScalarEvolutionWrapperPass>(); + AU.addPreserved<ScalarEvolutionWrapperPass>(); AU.addRequired<ScopDetection>(); AU.addPreserved<ScopDetection>(); } @@ -490,7 +490,7 @@ bool IndependentBlocks::runOnFunction(llvm::Function &F) { RI = &getAnalysis<RegionInfoPass>().getRegionInfo(); LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo(); SD = &getAnalysis<ScopDetection>(); - SE = &getAnalysis<ScalarEvolution>(); + SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE(); AllocaBlock = &F.getEntryBlock(); @@ -521,7 +521,7 @@ INITIALIZE_PASS_BEGIN(IndependentBlocks, "polly-independent", "Polly - Create independent blocks", false, false); INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass); INITIALIZE_PASS_DEPENDENCY(RegionInfoPass); -INITIALIZE_PASS_DEPENDENCY(ScalarEvolution); +INITIALIZE_PASS_DEPENDENCY(ScalarEvolutionWrapperPass); INITIALIZE_PASS_DEPENDENCY(ScopDetection); INITIALIZE_PASS_END(IndependentBlocks, "polly-independent", "Polly - Create independent blocks", false, false) |

