[llvm] Eliminating li of 0 into arg registers of unused arguments (PR #122741)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 13 01:12:20 PDT 2025


================
@@ -6241,6 +6241,10 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
         Flags.setNonNeg(N1->getFlags().hasNonNeg());
       return getNode(OpOpcode, DL, VT, N1.getOperand(0), Flags);
     }
+
+    if (N1.isPoison())
+      return getPOISON(VT);
----------------
arsenm wrote:

Slightly annoying that this is referring to OpOpcode by another method

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


More information about the llvm-commits mailing list