[llvm] [RISCV] Add BREV8 to SimplifyDemandedBitsForTargetNode. (PR #141898)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 08:05:31 PDT 2025
================
@@ -20575,8 +20575,7 @@ void RISCVTargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
Known = DAG.computeKnownBits(Op.getOperand(0), Depth + 1);
bool IsGORC = Op.getOpcode() == RISCVISD::ORC_B;
// To compute zeros, we need to invert the value and invert it back after.
- Known.Zero =
- ~computeGREVOrGORC(~Known.Zero.getZExtValue(), 7, IsGORC);
+ Known.Zero = ~computeGREVOrGORC(~Known.Zero.getZExtValue(), 7, IsGORC);
----------------
topperc wrote:
Not sure. I must have done something by accident when I copied this code into the end of my new code.
https://github.com/llvm/llvm-project/pull/141898
More information about the llvm-commits
mailing list