[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
================
@@ -2779,119 +2779,11 @@ static bool vectorPseudoHasAllNBitUsers(SDNode *User, unsigned UserOpNo,
if (UserOpNo == VLIdx)
return false;
- // TODO: Handle Zvbb instructions
- switch (PseudoInfo->BaseInstr) {
- default:
+ auto NumDemandedBits =
+ RISCV::getVectorLowDemandedScalarBits(PseudoInfo->BaseInstr, Log2SEW);
+ if (!NumDemandedBits || Bits < NumDemandedBits)
----------------
preames wrote:
return (NumDemandedBits && Bits >= NumDemandedBits;
https://github.com/llvm/llvm-project/pull/67593
More information about the llvm-commits
mailing list