[llvm] Introducing a new ISD::POISON SDNode to represent the poison value in the IR. (PR #125883)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 14:02:50 PST 2025


================
@@ -871,7 +871,7 @@ class SelectionDAG {
   /// for integers, a type wider than) VT's element type.
   SDValue getSplatBuildVector(EVT VT, const SDLoc &DL, SDValue Op) {
     // VerifySDNode (via InsertNode) checks BUILD_VECTOR later.
-    if (Op.getOpcode() == ISD::UNDEF) {
+    if (Op.isUndef()) {
----------------
nikic wrote:

You can introduce the uses of isUndef() without changing the signature.

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


More information about the llvm-commits mailing list