[llvm] r374669 - Replace for-loop of SmallVector::push_back with SmallVector::append. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 12 09:37:02 PDT 2019
Author: rksimon
Date: Sat Oct 12 09:37:02 2019
New Revision: 374669
URL: http://llvm.org/viewvc/llvm-project?rev=374669&view=rev
Log:
Replace for-loop of SmallVector::push_back with SmallVector::append. NFCI.
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=374669&r1=374668&r2=374669&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Oct 12 09:37:02 2019
@@ -6936,10 +6936,8 @@ static bool getFauxShuffleMask(SDValue N
else
return false;
}
- for (SDValue &Op : SrcInputs0)
- Ops.push_back(Op);
- for (SDValue &Op : SrcInputs1)
- Ops.push_back(Op);
+ Ops.append(SrcInputs0.begin(), SrcInputs0.end());
+ Ops.append(SrcInputs1.begin(), SrcInputs1.end());
return true;
}
case ISD::INSERT_SUBVECTOR: {
More information about the llvm-commits
mailing list