Skip to content

Commit d591c5a

Browse files
committed
Remove same VLMAX check
If they have the same VLMAX then adjusting the SEW/LMUL ratio is idempotent anyway. Removing the check to simplify it a bit.
1 parent 8e773f8 commit d591c5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,8 +1045,7 @@ void RISCVInsertVSETVLI::transferBefore(VSETVLIInfo &Info,
10451045
// places.
10461046
DemandedFields Demanded = getDemanded(MI, MRI, ST);
10471047
if (!Demanded.LMUL && !Demanded.SEWLMULRatio && Info.isValid() &&
1048-
PrevInfo.isValid() && !Info.isUnknown() && !PrevInfo.isUnknown() &&
1049-
!Info.hasSameVLMAX(PrevInfo)) {
1048+
PrevInfo.isValid() && !Info.isUnknown() && !PrevInfo.isUnknown()) {
10501049
if (auto NewVLMul = RISCVVType::getSameRatioLMUL(
10511050
PrevInfo.getSEW(), PrevInfo.getVLMUL(), Info.getSEW()))
10521051
Info.setVLMul(*NewVLMul);

0 commit comments

Comments
 (0)