From: Michael Kuperstein Date: Tue, 28 Jun 2016 00:54:12 +0000 (+0000) Subject: [PM] Normalize FIXMEs for missing PreserveCFG to have the same wording. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce2862caac87fc8090a632a886bb9cfccc856921;p=llvm [PM] Normalize FIXMEs for missing PreserveCFG to have the same wording. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273974 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 2d3ff839f1f..c25199db5c9 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -3111,7 +3111,7 @@ PreservedAnalyses InstCombinePass::run(Function &F, return PreservedAnalyses::all(); // Mark all the analyses that instcombine updates as preserved. - // FIXME: Need a way to preserve CFG analyses here! + // FIXME: This should also 'preserve the CFG'. PreservedAnalyses PA; PA.preserve(); return PA; diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 89e1c50b8c7..0eed0240c74 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -149,8 +149,7 @@ PreservedAnalyses ADCEPass::run(Function &F, FunctionAnalysisManager &) { if (!aggressiveDCE(F)) return PreservedAnalyses::all(); - // FIXME: ADCE should also 'preserve the CFG'. - // The new pass manager has currently no way to do it. + // FIXME: This should also 'preserve the CFG'. auto PA = PreservedAnalyses(); PA.preserve(); return PA; diff --git a/lib/Transforms/Scalar/BDCE.cpp b/lib/Transforms/Scalar/BDCE.cpp index e2587f94e44..4f6225f4c7b 100644 --- a/lib/Transforms/Scalar/BDCE.cpp +++ b/lib/Transforms/Scalar/BDCE.cpp @@ -74,8 +74,7 @@ PreservedAnalyses BDCEPass::run(Function &F, FunctionAnalysisManager &AM) { if (!bitTrackingDCE(F, DB)) return PreservedAnalyses::all(); - // FIXME: BDCE should also 'preserve the CFG'. - // The new pass manager has currently no way to do it. + // FIXME: This should also 'preserve the CFG'. auto PA = PreservedAnalyses(); PA.preserve(); return PA; diff --git a/lib/Transforms/Scalar/Float2Int.cpp b/lib/Transforms/Scalar/Float2Int.cpp index dfe50fbc75c..7aa6dc6992b 100644 --- a/lib/Transforms/Scalar/Float2Int.cpp +++ b/lib/Transforms/Scalar/Float2Int.cpp @@ -532,7 +532,7 @@ PreservedAnalyses Float2IntPass::run(Function &F, FunctionAnalysisManager &) { if (!runImpl(F)) return PreservedAnalyses::all(); else { - //FIXME: setPreservesCFG is not currently supported in the new PM. + // FIXME: This should also 'preserve the CFG'. PreservedAnalyses PA; PA.preserve(); return PA; diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 35387846d88..542cf38e43b 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -2233,8 +2233,7 @@ PreservedAnalyses IndVarSimplifyPass::run(Loop &L, AnalysisManager &AM) { if (!IVS.run(&L)) return PreservedAnalyses::all(); - // FIXME: once we have an equivalent of AU.setPreservesCFG() in the - // new pass manager, we should use that here. + // FIXME: This should also 'preserve the CFG'. return getLoopPassPreservedAnalyses(); } diff --git a/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp b/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp index eb67aea37fc..0a86920efba 100644 --- a/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp +++ b/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp @@ -595,8 +595,7 @@ MergedLoadStoreMotionPass::run(Function &F, AnalysisManager &AM) { if (!Impl.run(F, MD, AA)) return PreservedAnalyses::all(); - // FIXME: This pass should also 'preserve the CFG'. - // The new pass manager has currently no way to do it. + // FIXME: This should also 'preserve the CFG'. PreservedAnalyses PA; PA.preserve(); PA.preserve(); diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index b09ed246387..b930a8fb7e9 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -2226,8 +2226,7 @@ PreservedAnalyses ReassociatePass::run(Function &F, FunctionAnalysisManager &) { ValueRankMap.clear(); if (MadeChange) { - // FIXME: Reassociate should also 'preserve the CFG'. - // The new pass manager has currently no way to do it. + // FIXME: This should also 'preserve the CFG'. auto PA = PreservedAnalyses(); PA.preserve(); return PA; diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp index 029164dbb46..251086937c0 100644 --- a/lib/Transforms/Utils/LCSSA.cpp +++ b/lib/Transforms/Utils/LCSSA.cpp @@ -340,8 +340,7 @@ PreservedAnalyses LCSSAPass::run(Function &F, AnalysisManager &AM) { if (!formLCSSAOnAllLoops(&LI, DT, SE)) return PreservedAnalyses::all(); - // FIXME: There is no setPreservesCFG in the new PM. When that becomes - // available, it should be used here. + // FIXME: This should also 'preserve the CFG'. PreservedAnalyses PA; PA.preserve(); PA.preserve(); diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp index d26a603573d..1419254bcb4 100644 --- a/lib/Transforms/Utils/Mem2Reg.cpp +++ b/lib/Transforms/Utils/Mem2Reg.cpp @@ -59,11 +59,7 @@ PreservedAnalyses PromotePass::run(Function &F, AnalysisManager &AM) { if (!promoteMemoryToRegister(F, DT, AC)) return PreservedAnalyses::all(); - // FIXME: This pass should preserve the CFG. - // There's currently no way to do it in the new PM. - // In the old PM this pass preserved a fair amount of "orthogonal" - // transformation passes. This concept has no sense in the new PM, - // therefore we don't preserve them here. + // FIXME: This should also 'preserve the CFG'. return PreservedAnalyses::none(); }