[llvm] [SelectionDAG] Propagate poison in getNode with two operands if the second is poison. (PR #135387)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 12 03:29:39 PDT 2025


================
@@ -7586,6 +7586,14 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
     }
   }
 
+  /*
+  if (N2.getOpcode() == ISD::POISON) {
+    switch (Opcode) {
+    case ISD::ADD:
+      return getPOISON(VT);
+    }
+  }*/
----------------
arsenm wrote:

Commented out code 

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


More information about the llvm-commits mailing list