Skip to content

Commit 040df69

Browse files
committed
[RISCV] Use VSETVLIInfo != operator in needVSETVLIPHI. NFC
Instead of manually checking hasSameVTYPE and hasSameAVL.
1 parent 0c6e1ca commit 040df69

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
@@ -1351,8 +1351,7 @@ bool RISCVInsertVSETVLI::needVSETVLIPHI(const VSETVLIInfo &Require,
13511351
// We found a VSET(I)VLI make sure it matches the output of the
13521352
// predecessor block.
13531353
VSETVLIInfo DefInfo = getInfoForVSETVLI(*DefMI);
1354-
if (!DefInfo.hasSameAVL(PBBInfo.Exit) ||
1355-
!DefInfo.hasSameVTYPE(PBBInfo.Exit))
1354+
if (DefInfo != PBBInfo.Exit)
13561355
return true;
13571356
}
13581357

0 commit comments

Comments
 (0)