forked from OSchip/llvm-project
[NFC] Clarify comment about LoopDeletionPass in the optimization pipeline
Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D115179
This commit is contained in:
parent
591eb2bdb6
commit
5c7e783ebe
|
@ -1164,8 +1164,9 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
|
|||
// Disable header duplication at -Oz.
|
||||
LPM.addPass(LoopRotatePass(Level != OptimizationLevel::Oz, LTOPreLink));
|
||||
// Some loops may have become dead by now. Try to delete them.
|
||||
// FIXME: see disscussion in https://reviews.llvm.org/D112851
|
||||
// this may need to be revisited once GVN is more powerful.
|
||||
// FIXME: see discussion in https://reviews.llvm.org/D112851,
|
||||
// this may need to be revisited once we run GVN before loop deletion
|
||||
// in the simplification pipeline.
|
||||
LPM.addPass(LoopDeletionPass());
|
||||
OptimizePM.addPass(createFunctionToLoopPassAdaptor(
|
||||
std::move(LPM), /*UseMemorySSA=*/false, /*UseBlockFrequencyInfo=*/false));
|
||||
|
|
Loading…
Reference in New Issue