[llvm] Avoid making vector more poisonous in visitCONCAT_VECTORS (PR #223492)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 13:52:15 PDT 2026
================
@@ -27243,7 +27243,9 @@ static SDValue combineConcatVectorOfConcatVectors(SDNode *N,
SmallVector<SDValue> ConcatOps;
for (const SDValue &Op : N->ops()) {
if (Op.isUndef()) {
- ConcatOps.append(FirstConcat->getNumOperands(), DAG.getPOISON(SubVT));
+ SDValue Fill = Op.getOpcode() == ISD::POISON ? DAG.getPOISON(SubVT)
+ : DAG.getUNDEF(SubVT);
----------------
RKSimon wrote:
we're starting to use this getUNDEF/POISON a lot - not sure if its worth a helper or we just use `getNode(Op.getOpcode(), SDLoc(), SubVT)`
https://github.com/llvm/llvm-project/pull/223492
More information about the llvm-commits
mailing list