mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 13:00:50 +00:00
[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:
parent
cbc64ac10e
commit
8c60cf143e
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user