Skip to content

Commit 93dbac7

Browse files
authored
[RISCV] Use isVectorConfigInstr in isConvertibleToVMV_V_V. NFC (#141874)
1 parent 17cfd94 commit 93dbac7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,7 @@ static bool isConvertibleToVMV_V_V(const RISCVSubtarget &STI,
273273
if (MBBI->isMetaInstruction())
274274
continue;
275275

276-
if (MBBI->getOpcode() == RISCV::PseudoVSETVLI ||
277-
MBBI->getOpcode() == RISCV::PseudoVSETVLIX0 ||
278-
MBBI->getOpcode() == RISCV::PseudoVSETIVLI) {
276+
if (RISCVInstrInfo::isVectorConfigInstr(*MBBI)) {
279277
// There is a vsetvli between COPY and source define instruction.
280278
// vy = def_vop ... (producing instruction)
281279
// ...

0 commit comments

Comments
 (0)