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<DominatorTreeAnalysis>();
return PA;
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<GlobalsAA>();
return PA;
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<GlobalsAA>();
return PA;
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<GlobalsAA>();
return PA;
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();
}
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<GlobalsAA>();
PA.preserve<MemoryDependenceAnalysis>();
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<GlobalsAA>();
return PA;
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>();
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();
}