[llvm] 02bd47d - [SDAG][NFC] Replace initialization UNDEF by POISON (#224015)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 08:56:24 PDT 2026


Author: Mattéo Rizza Murgier
Date: 2026-09-16T17:56:19+02:00
New Revision: 02bd47db9d3c4313fe1b5054ed8a1a081f1b7f78

URL: https://github.com/llvm/llvm-project/commit/02bd47db9d3c4313fe1b5054ed8a1a081f1b7f78
DIFF: https://github.com/llvm/llvm-project/commit/02bd47db9d3c4313fe1b5054ed8a1a081f1b7f78.diff

LOG: [SDAG][NFC] Replace initialization UNDEF by POISON (#224015)

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
index 7d61c3445ab9f..55d89ed05545b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
@@ -6578,7 +6578,7 @@ SDValue DAGTypeLegalizer::PromoteIntOp_CONCAT_VECTORS(SDNode *N) {
   unsigned NumElems = N->getNumOperands();
 
   if (ResVT.isScalableVector()) {
-    SDValue ResVec = DAG.getUNDEF(ResVT);
+    SDValue ResVec = DAG.getPOISON(ResVT);
 
     for (unsigned OpIdx = 0; OpIdx < NumElems; ++OpIdx) {
       SDValue Op = N->getOperand(OpIdx);


        


More information about the llvm-commits mailing list