[PM] More workaround for PR28400

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Silva 2016-08-08 05:38:06 +00:00
parent ec1bd22f35
commit 6f2a8d3aee
3 changed files with 4 additions and 0 deletions

View File

@ -434,6 +434,7 @@ AlignmentFromAssumptionsPass::run(Function &F, FunctionAnalysisManager &AM) {
ScalarEvolution &SE = AM.getResult<ScalarEvolutionAnalysis>(F);
DominatorTree &DT = AM.getResult<DominatorTreeAnalysis>(F);
bool Changed = runImpl(F, AC, &SE, &DT);
AM.invalidate<ScalarEvolutionAnalysis>(F);
if (!Changed)
return PreservedAnalyses::all();
PreservedAnalyses PA;

View File

@ -157,6 +157,7 @@ PreservedAnalyses NaryReassociatePass::run(Function &F,
auto *TTI = &AM.getResult<TargetIRAnalysis>(F);
bool Changed = runImpl(F, AC, DT, SE, TLI, TTI);
AM.invalidate<ScalarEvolutionAnalysis>(F);
if (!Changed)
return PreservedAnalyses::all();

View File

@ -869,6 +869,8 @@ PreservedAnalyses LoopSimplifyPass::run(Function &F,
for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I)
Changed |= simplifyLoop(*I, DT, LI, SE, AC, true /* PreserveLCSSA */);
AM.invalidate<ScalarEvolutionAnalysis>(F);
if (!Changed)
return PreservedAnalyses::all();
PreservedAnalyses PA;