Skip to content

Commit 99a2e66

Browse files
[fixup] Simplify code
Change-Id: I0e51f00113d0692d5d3751c89eac8167511d1d9e
1 parent 7bb83b9 commit 99a2e66

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15840,12 +15840,9 @@ static bool createTblShuffleMask(unsigned SrcWidth, unsigned DstWidth,
1584015840
Mask.resize(MaskLen, NumElts);
1584115841

1584215842
unsigned SrcIndex = 0;
15843-
for (unsigned I = 0; I < MaskLen; I += Factor)
15843+
for (unsigned I = IsLittleEndian ? 0 : Factor - 1; I < MaskLen; I += Factor)
1584415844
Mask[I] = SrcIndex++;
1584515845

15846-
if (!IsLittleEndian)
15847-
std::rotate(Mask.rbegin(), Mask.rbegin() + Factor - 1, Mask.rend());
15848-
1584915846
return true;
1585015847
}
1585115848

0 commit comments

Comments
 (0)