From: Sean Silva Date: Mon, 8 Aug 2016 07:03:49 +0000 (+0000) Subject: Add some comments linking back to PR28400. X-Git-Tag: llvmorg-4.0.0-rc1~13084 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0873e7d2186c97499aacda67eb2fea7ef4ccbcf3;p=platform%2Fupstream%2Fllvm.git Add some comments linking back to PR28400. Thanks to Mehdi for the suggestion! llvm-svn: 277984 --- diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index e4b86e9..6496f3a 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -1274,6 +1274,8 @@ ReversePostOrderFunctionAttrsPass::run(Module &M, AnalysisManager &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(M); if (!Changed) diff --git a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp index a9acbd0..9ecaefe 100644 --- a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp +++ b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp @@ -434,7 +434,11 @@ AlignmentFromAssumptionsPass::run(Function &F, FunctionAnalysisManager &AM) { ScalarEvolution &SE = AM.getResult(F); DominatorTree &DT = AM.getResult(F); bool Changed = runImpl(F, AC, &SE, &DT); + + // FIXME: We need to invalidate this to avoid PR28400. Is there a better + // solution? AM.invalidate(F); + if (!Changed) return PreservedAnalyses::all(); PreservedAnalyses PA; diff --git a/llvm/lib/Transforms/Scalar/NaryReassociate.cpp b/llvm/lib/Transforms/Scalar/NaryReassociate.cpp index 0ac1edf..84ccb50 100644 --- a/llvm/lib/Transforms/Scalar/NaryReassociate.cpp +++ b/llvm/lib/Transforms/Scalar/NaryReassociate.cpp @@ -157,7 +157,11 @@ PreservedAnalyses NaryReassociatePass::run(Function &F, auto *TTI = &AM.getResult(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(F); + if (!Changed) return PreservedAnalyses::all(); diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index d24a7aa..5b21ad6 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -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(F); if (!Changed)