Skip to content

Commit 3bfff33

Browse files
committed
fixup! Use isTupleInsertInstr instead
1 parent 8df283b commit 3bfff33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ RISCVVLOptimizer::checkUsers(const MachineInstr &MI) const {
15101510
// or another INSERT_SUBREG, since VL just works differently
15111511
// between segmented operations (per-field) v.s. other RVV ops (on the
15121512
// whole register group).
1513-
if (CandidateMI.getOpcode() == RISCV::INSERT_SUBREG ||
1513+
if (isTupleInsertInstr(CandidateMI, *MRI) ||
15141514
isSegmentedStoreInstr(CandidateMI))
15151515
Worklist.insert(&UseOp);
15161516
}

0 commit comments

Comments
 (0)