================
@@ -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));
----------------
RKSimon wrote:
Create a helper if you think we're going to need more of this pattern?
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