[llvm] [DAG][ARM] computeKnownBitsForTargetNode - add handling for ARMISD VORRIMM\VBICIMM nodes (PR #149494)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 02:48:19 PDT 2025


================
@@ -20073,6 +20073,31 @@ void ARMTargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
     Known = KnownOp0.intersectWith(KnownOp1);
     break;
   }
+  case ARMISD::VORRIMM: {
+    KnownBits KnownLHS = DAG.computeKnownBits(Op.getOperand(0), Depth + 1);
+
+    unsigned Encoded = Op.getConstantOperandVal(1);
+    unsigned ElemSize = Op.getScalarValueSizeInBits();
----------------
woruyu wrote:

Done! add bit check between DAGop and immOp, if false, return KnownLHS.

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


More information about the llvm-commits mailing list