[C++11,ARM64] Range based for loops in target lowering.

No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2014-04-02 18:00:51 +00:00
parent cbc64ac10e
commit 8c60cf143e

View File

@ -4640,10 +4640,9 @@ static SDValue GenerateTBL(SDValue Op, ArrayRef<int> ShuffleMask,
unsigned BytesPerElt = EltVT.getSizeInBits() / 8;
SmallVector<SDValue, 8> TBLMask;
for (ArrayRef<int>::iterator I = ShuffleMask.begin(), E = ShuffleMask.end();
I != E; ++I) {
for (auto Val : ShuffleMask) {
for (unsigned Byte = 0; Byte < BytesPerElt; ++Byte) {
unsigned Offset = Byte + *I * BytesPerElt;
unsigned Offset = Byte + Val * BytesPerElt;
TBLMask.push_back(DAG.getConstant(Offset, MVT::i32));
}
}