Skip to content

Commit b16777a

Browse files
authored
[RISCV] Return MILog2SEW for mask instructions getOperandLog2EEW. NFC (llvm#122332)
The SEW operand for these instructions should have a value of 0. This matches what was done for vcpop/vfirst.
1 parent 2c6ed5f commit b16777a

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
@@ -637,7 +637,7 @@ getOperandLog2EEW(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
637637
case RISCV::VMSBF_M:
638638
case RISCV::VMSIF_M:
639639
case RISCV::VMSOF_M: {
640-
return 0;
640+
return MILog2SEW;
641641
}
642642

643643
// Vector Iota Instruction

0 commit comments

Comments
 (0)