[llvm] [LV][NFC] correct comment for isScalarEpilogueAllowed() (PR #190254)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 4 04:21:35 PDT 2026


================
@@ -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 (i.e., not prevented by
----------------
fhahn wrote:

```suggestion
  /// Returns true if a scalar epilogue is allowed (e.g.., not prevented by
```

might be more accurate, as there are other options/settings that may forbid scalar epilogue

https://github.com/llvm/llvm-project/pull/190254


More information about the llvm-commits mailing list