[llvm] DAG: Use poison instead of undef in some vector combines (PR #177612)

Mikael Holmen via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 23:51:53 PDT 2026


================
@@ -26227,7 +26227,7 @@ SDValue DAGCombiner::visitCONCAT_VECTORS(SDNode *N) {
       unsigned NumElts = OpVT.getVectorNumElements();
 
       if (Op.isUndef())
-        Opnds.append(NumElts, DAG.getUNDEF(MinVT));
+        Opnds.append(NumElts, DAG.getPOISON(MinVT));
----------------
mikaelholmen wrote:

I wrote an issue
https://github.com/llvm/llvm-project/issues/222857
about a miscompile that seems to start happening with this change.

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


More information about the llvm-commits mailing list