mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
Add a missing check, which broke a bunch of vector tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03017c75c7
commit
a4c5d8c6b4
@ -2756,9 +2756,12 @@ SDOperand DAGCombiner::visitVBinOp(SDNode *N, ISD::NodeType IntOp,
|
||||
Ops.back().getOpcode() == ISD::ConstantFP) &&
|
||||
"Scalar binop didn't fold!");
|
||||
}
|
||||
Ops.push_back(*(LHS.Val->op_end()-2));
|
||||
Ops.push_back(*(LHS.Val->op_end()-1));
|
||||
return DAG.getNode(ISD::VBUILD_VECTOR, MVT::Vector, Ops);
|
||||
|
||||
if (Ops.size() == LHS.getNumOperands()-2) {
|
||||
Ops.push_back(*(LHS.Val->op_end()-2));
|
||||
Ops.push_back(*(LHS.Val->op_end()-1));
|
||||
return DAG.getNode(ISD::VBUILD_VECTOR, MVT::Vector, Ops);
|
||||
}
|
||||
}
|
||||
|
||||
return SDOperand();
|
||||
|
Loading…
Reference in New Issue
Block a user