Skip to content

Commit

Permalink
Add some comments linking back to PR28400.
Browse files Browse the repository at this point in the history
Thanks to Mehdi for the suggestion!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277984 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chisophugis committed Aug 8, 2016
1 parent 6f2a8d3 commit 6d4afae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Transforms/IPO/FunctionAttrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,8 @@ ReversePostOrderFunctionAttrsPass::run(Module &M, AnalysisManager<Module> &AM) {

// CallGraphAnalysis holds AssertingVH and must be invalidated eagerly so
// that other passes don't delete stuff from under it.
// FIXME: We need to invalidate this to avoid PR28400. Is there a better
// solution?
AM.invalidate<CallGraphAnalysis>(M);

if (!Changed)
Expand Down
4 changes: 4 additions & 0 deletions lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@ 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);

// FIXME: We need to invalidate this to avoid PR28400. Is there a better
// solution?
AM.invalidate<ScalarEvolutionAnalysis>(F);

if (!Changed)
return PreservedAnalyses::all();
PreservedAnalyses PA;
Expand Down
4 changes: 4 additions & 0 deletions lib/Transforms/Scalar/NaryReassociate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ PreservedAnalyses NaryReassociatePass::run(Function &F,
auto *TTI = &AM.getResult<TargetIRAnalysis>(F);

bool Changed = runImpl(F, AC, DT, SE, TLI, TTI);

// FIXME: We need to invalidate this to avoid PR28400. Is there a better
// solution?
AM.invalidate<ScalarEvolutionAnalysis>(F);

if (!Changed)
return PreservedAnalyses::all();

Expand Down
2 changes: 2 additions & 0 deletions lib/Transforms/Utils/LoopSimplify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */);

// FIXME: We need to invalidate this to avoid PR28400. Is there a better
// solution?
AM.invalidate<ScalarEvolutionAnalysis>(F);

if (!Changed)
Expand Down

0 comments on commit 6d4afae

Please sign in to comment.