[llvm] [RISCV][VLOPT] Add vfirst and vcpop to getOperandInfo (PR #122295)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 10:02:29 PST 2025
================
@@ -488,6 +488,10 @@ getOperandLog2EEW(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
case RISCV::VFCVT_F_X_V:
// Vector Floating-Point Merge Instruction
case RISCV::VFMERGE_VFM:
+ // Vector count population in mask vcpop.m
+ // vfirst find-first-set mask bit
+ case RISCV::VCPOP_M:
+ case RISCV::VFIRST_M:
----------------
michaelmaitland wrote:
> Or is it the case that the MILog2SEW is guaranteed to be zero in this case?
That is correct. And since the source operand may not be vmv0, we need to handle it here.
https://github.com/llvm/llvm-project/pull/122295
More information about the llvm-commits
mailing list