Simplify code. No functional change intended.

llvm-svn: 187870
This commit is contained in:
Craig Topper 2013-08-07 08:16:07 +00:00
parent bc8808ce4a
commit c5b0ad27ab
1 changed files with 1 additions and 4 deletions

View File

@ -5288,10 +5288,7 @@ X86TargetLowering::LowerAsSplatVectorLoad(SDValue SrcOp, EVT VT, SDLoc dl,
LD->getPointerInfo().getWithOffset(StartOffset),
false, false, false, 0);
SmallVector<int, 8> Mask;
for (unsigned i = 0; i != NumElems; ++i)
Mask.push_back(EltNo);
SmallVector<int, 8> Mask(NumElems, EltNo);
return DAG.getVectorShuffle(NVT, dl, V1, DAG.getUNDEF(NVT), &Mask[0]);
}