mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 22:46:25 +00:00
[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:
parent
ec1bd22f35
commit
6f2a8d3aee
@ -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;
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user