-
Notifications
You must be signed in to change notification settings - Fork 15.2k
DAG: Preserve poison in combineConcatVectorOfScalars #168220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAG: Preserve poison in combineConcatVectorOfScalars #168220
Conversation
|
@llvm/pr-subscribers-llvm-selectiondag Author: Matt Arsenault (arsenm) ChangesFull diff: https://github.com/llvm/llvm-project/pull/168220.diff 1 Files Affected:
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 70005ba7051cc..6fbac0f8c8cdf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -25465,7 +25465,7 @@ static SDValue combineConcatVectorOfScalars(SDNode *N, SelectionDAG &DAG) {
!Op.getOperand(0).getValueType().isVector())
Ops.push_back(Op.getOperand(0));
else if (Op.isUndef())
- Ops.push_back(DAG.getNode(ISD::UNDEF, DL, SVT));
+ Ops.push_back(DAG.getNode(Op.getOpcode(), DL, SVT));
else
return SDValue();
@@ -25487,7 +25487,7 @@ static SDValue combineConcatVectorOfScalars(SDNode *N, SelectionDAG &DAG) {
if (Op.getValueType() == SVT)
continue;
if (Op.isUndef())
- Op = DAG.getNode(ISD::UNDEF, DL, SVT);
+ Op = DAG.getNode(Op.getOpcode(), DL, SVT);
else
Op = DAG.getBitcast(SVT, Op);
}
|
RKSimon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/21890 Here is the relevant piece of the build log for the reference |

No description provided.