================
@@ -7024,7 +7024,9 @@ static SDValue foldCONCAT_VECTORS(const SDLoc &DL, EVT VT,
SmallVector<SDValue, 16> Elts;
for (SDValue Op : Ops) {
EVT OpVT = Op.getValueType();
- if (Op.isUndef())
+ if (Op.getOpcode() == ISD::POISON)
+ Elts.append(OpVT.getVectorNumElements(), DAG.getPOISON(SVT));
+ else if (Op.getOpcode() == ISD::UNDEF)
Elts.append(OpVT.getVectorNumElements(), DAG.getUNDEF(SVT));
----------------
arsenm wrote:
There are more widespread poison or undef patterns, I'm not sure this
particular case is worth it
https://github.com/llvm/llvm-project/pull/206948
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits