Skip to content

Commit

Permalink
[RISCV] Return MILog2SEW for mask instructions getOperandLog2EEW. NFC (
Browse files Browse the repository at this point in the history
…#122332)

The SEW operand for these instructions should have a value of 0. This
matches what was done for vcpop/vfirst.
  • Loading branch information
topperc authored Jan 9, 2025
1 parent 2c6ed5f commit b16777a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ getOperandLog2EEW(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
case RISCV::VMSBF_M:
case RISCV::VMSIF_M:
case RISCV::VMSOF_M: {
return 0;
return MILog2SEW;
}

// Vector Iota Instruction
Expand Down

0 comments on commit b16777a

Please sign in to comment.