[llvm] [LV] Use getFixedValue instead of getKnownMinValue when appropriate (PR #143526)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 03:25:49 PDT 2025


================
@@ -331,7 +331,7 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) {
 
   bool IsSingleScalar = vputils::isSingleScalar(Def);
 
-  VPLane LastLane(IsSingleScalar ? 0 : VF.getKnownMinValue() - 1);
+  VPLane LastLane(IsSingleScalar ? 0 : VF.getFixedValue() - 1);
----------------
lukel97 wrote:

This is an existing invariant, in the bit below there's an assertion that `!VF.isScalable()` if IsSingleScalar is false

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


More information about the llvm-commits mailing list