[llvm] 7756bfd - [NFC] Modify the comment of LoopRotate param (#180675)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 02:59:26 PST 2026


Author: Ningning Shi(史宁宁)
Date: 2026-02-10T18:59:22+08:00
New Revision: 7756bfd106cc5b0eeec24301e40c6cc223002574

URL: https://github.com/llvm/llvm-project/commit/7756bfd106cc5b0eeec24301e40c6cc223002574
DIFF: https://github.com/llvm/llvm-project/commit/7756bfd106cc5b0eeec24301e40c6cc223002574.diff

LOG: [NFC] Modify the comment of LoopRotate param (#180675)

The first param of LoopRotatePass is EnableHeaderDuplication. The value
'true' means 'enable the header duplication'.
`LoopRotatePass(bool EnableHeaderDuplication, bool PrepareForLTO)`

---------

Co-authored-by: Pengcheng Wang <wangpengcheng.pp at bytedance.com>

Added: 
    

Modified: 
    llvm/lib/Passes/PassBuilderPipelines.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 675d941c39c13..123541a985454 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -512,8 +512,8 @@ PassBuilder::buildO1FunctionSimplificationPipeline(OptimizationLevel Level,
   LPM1.addPass(LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
                         /*AllowSpeculation=*/false));
 
-  LPM1.addPass(LoopRotatePass(/* Disable header duplication */ true,
-                              isLTOPreLink(Phase)));
+  LPM1.addPass(
+      LoopRotatePass(/*EnableHeaderDuplication=*/true, isLTOPreLink(Phase)));
   // TODO: Investigate promotion cap for O1.
   LPM1.addPass(LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
                         /*AllowSpeculation=*/true));


        


More information about the llvm-commits mailing list