Skip to content

Commit 888d826

Browse files
fixup! remove assert
1 parent c2a8332 commit 888d826

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -936,12 +936,6 @@ bool RISCVVLOptimizer::checkUsers(const MachineOperand *&CommonVL,
936936
}
937937

938938
// The SEW and LMUL of destination and source registers need to match.
939-
940-
// We know that MI DEF is a vector register, because that was the guard
941-
// to call this function, so we don't need to assert it.
942-
assert(isVectorRegClass(UserOp.getReg(), MRI) &&
943-
"Expected consumed operand to be a vector register");
944-
945939
OperandInfo ConsumerInfo = getOperandInfo(UserOp, MRI);
946940
OperandInfo ProducerInfo = getOperandInfo(MI.getOperand(0), MRI);
947941
if (ConsumerInfo.isUnknown() || ProducerInfo.isUnknown() ||

0 commit comments

Comments
 (0)