[llvm] [RISCV] Move vector pseudo hasAllNBitUsers switch into RISCVInstrInfo. NFC (PR #67593)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 15:27:33 PDT 2023
================
@@ -97,119 +97,11 @@ static bool vectorPseudoHasAllNBitUsers(const MachineOperand &UserOp,
if (UserOp.getOperandNo() == RISCVII::getVLOpNum(MCID))
return false;
- // TODO: Handle Zvbb instructions
- switch (PseudoInfo->BaseInstr) {
- default:
+ auto NumDemandedBits =
+ RISCV::getVectorLowDemandedScalarBits(PseudoInfo->BaseInstr, Log2SEW);
+ if (!NumDemandedBits || Bits < NumDemandedBits)
----------------
preames wrote:
Same
https://github.com/llvm/llvm-project/pull/67593
More information about the llvm-commits
mailing list