[PM] Normalize FIXMEs for missing PreserveCFG to have the same wording.
llvm-svn: 273974
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp
index 029164d..2510869 100644
--- a/llvm/lib/Transforms/Utils/LCSSA.cpp
+++ b/llvm/lib/Transforms/Utils/LCSSA.cpp
@@ -340,8 +340,7 @@
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<BasicAA>();
PA.preserve<GlobalsAA>();
diff --git a/llvm/lib/Transforms/Utils/Mem2Reg.cpp b/llvm/lib/Transforms/Utils/Mem2Reg.cpp
index d26a603..1419254 100644
--- a/llvm/lib/Transforms/Utils/Mem2Reg.cpp
+++ b/llvm/lib/Transforms/Utils/Mem2Reg.cpp
@@ -59,11 +59,7 @@
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();
}