Skip to content

Commit 3d05abd

Browse files
fixup! VLM and VSM use EEW=1.
1 parent c90d5b8 commit 3d05abd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,11 @@ static OperandInfo getOperandInfo(const MachineOperand &MO,
257257
// Vector Unit-Stride Instructions
258258
// Vector Strided Instructions
259259
/// Dest EEW encoded in the instruction and EMUL=(EEW/SEW)*LMUL
260-
case RISCV::VLE8_V:
261-
case RISCV::VSE8_V:
262260
case RISCV::VLM_V:
263261
case RISCV::VSM_V:
262+
return OperandInfo(RISCVVType::getEMULEqualsEEWDivSEWTimesLMUL(0, MI), 0);
263+
case RISCV::VLE8_V:
264+
case RISCV::VSE8_V:
264265
case RISCV::VLSE8_V:
265266
case RISCV::VSSE8_V:
266267
case RISCV::VLE8FF_V:

0 commit comments

Comments
 (0)