[llvm] [llvm][loop-rotate] Allow forcing loop-rotation (PR #82828)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 04:08:44 PST 2024
================
@@ -630,8 +639,9 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
/*AllowSpeculation=*/false));
// Disable header duplication in loop rotation at -Oz.
- LPM1.addPass(
- LoopRotatePass(Level != OptimizationLevel::Oz, isLTOPreLink(Phase)));
+ LPM1.addPass(LoopRotatePass(EnableLoopHeaderDuplication ||
+ (Level != OptimizationLevel::Oz),
----------------
fhahn wrote:
nit: redundant ()
https://github.com/llvm/llvm-project/pull/82828
More information about the llvm-commits
mailing list