Skip to content

Commit 3fbb815

Browse files
authored
[RISCV] Check that VLMAX is the same when demanding exact VL (#89080)
1 parent f2695a1 commit 3fbb815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ class VSETVLIInfo {
616616
if (SEWLMULRatioOnly)
617617
return false;
618618

619-
if (Used.VLAny && !hasSameAVL(Require))
619+
if (Used.VLAny && !(hasSameAVL(Require) && hasSameVLMAX(Require)))
620620
return false;
621621

622622
if (Used.VLZeroness && !hasEquallyZeroAVL(Require, MRI))

0 commit comments

Comments
 (0)