[llvm] [RISCV][RFC] Add additional opcodes to RISCVDAGToDAGISel::hasAllNBitUsers (PR #147728)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 09:53:46 PDT 2025
================
@@ -3621,20 +3625,39 @@ bool RISCVDAGToDAGISel::hasAllNBitUsers(SDNode *Node, unsigned Bits,
break;
[[fallthrough]];
}
+ case RISCV::COPY:
+ case RISCV::PHI:
+ case RISCV::ADD:
+ case RISCV::ADDI:
case RISCV::AND:
+ case RISCV::MUL:
case RISCV::OR:
+ case RISCV::SUB:
case RISCV::XOR:
case RISCV::XORI:
case RISCV::ANDN:
+ case RISCV::BREV8:
----------------
topperc wrote:
BREV8 and ORC_B are incorrect in RISCVOptWInstrs. We need to round to the nearest byte before doing the recursive call.
https://github.com/llvm/llvm-project/pull/147728
More information about the llvm-commits
mailing list