[llvm] r187870 - Simplify code. No functional change intended.
Craig Topper
craig.topper at gmail.com
Wed Aug 7 01:16:07 PDT 2013
Author: ctopper
Date: Wed Aug 7 03:16:07 2013
New Revision: 187870
URL: http://llvm.org/viewvc/llvm-project?rev=187870&view=rev
Log:
Simplify code. No functional change intended.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=187870&r1=187869&r2=187870&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Aug 7 03:16:07 2013
@@ -5288,10 +5288,7 @@ X86TargetLowering::LowerAsSplatVectorLoa
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]);
}
More information about the llvm-commits
mailing list