[llvm] [RISCV] Add BREV8 to SimplifyDemandedBitsForTargetNode. (PR #141898)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Thu May 29 02:24:52 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);
----------------
wangpc-pp wrote:

Why is this line re-formatted? I don't see any change?

https://github.com/llvm/llvm-project/pull/141898


More information about the llvm-commits mailing list