[llvm] 6bf8279 - [LV][NFC] correct comment for isScalarEpilogueAllowed() (#190254)

via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 5 04:55:40 PDT 2026


Author: Hassnaa Hamdi
Date: 2026-04-05T12:55:36+01:00
New Revision: 6bf8279dc2181916907e5f09fdb5c00620412ebd

URL: https://github.com/llvm/llvm-project/commit/6bf8279dc2181916907e5f09fdb5c00620412ebd
DIFF: https://github.com/llvm/llvm-project/commit/6bf8279dc2181916907e5f09fdb5c00620412ebd.diff

LOG: [LV][NFC] correct comment for isScalarEpilogueAllowed() (#190254)

The comment had the opposite meaning of what the function actually does.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 5ddb47a22e84f..193d33d554a94 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1309,8 +1309,8 @@ class LoopVectorizationCostModel {
     return false;
   }
 
-  /// Returns true if a scalar epilogue is not allowed due to optsize or a
-  /// loop hint annotation.
+  /// Returns true if a scalar epilogue is allowed (e.g.., not prevented by
+  /// optsize or a loop hint annotation).
   bool isScalarEpilogueAllowed() const {
     return ScalarEpilogueStatus == CM_ScalarEpilogueAllowed;
   }


        


More information about the llvm-commits mailing list