mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e4fae84b0b
commit
520b6e3fa5
@ -1878,9 +1878,8 @@ SDValue DAGTypeLegalizer::WidenVecRes_BUILD_VECTOR(SDNode *N) {
|
||||
unsigned WidenNumElts = WidenVT.getVectorNumElements();
|
||||
|
||||
SmallVector<SDValue, 16> NewOps(N->op_begin(), N->op_end());
|
||||
NewOps.reserve(WidenNumElts);
|
||||
for (unsigned i = NumElts; i < WidenNumElts; ++i)
|
||||
NewOps.push_back(DAG.getUNDEF(EltVT));
|
||||
assert(WidenNumElts >= NumElts && "Shrinking vector instead of widening!");
|
||||
NewOps.append(WidenNumElts - NumElts, DAG.getUNDEF(EltVT));
|
||||
|
||||
return DAG.getNode(ISD::BUILD_VECTOR, dl, WidenVT, &NewOps[0], NewOps.size());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user