OSDN Git Service

[X86] Improve some shuffle decoding code to remove a conditional from a loop and...
authorCraig Topper <craig.topper@intel.com>
Fri, 8 Jun 2018 01:09:31 +0000 (01:09 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 8 Jun 2018 01:09:31 +0000 (01:09 +0000)
commit5109f3dedd8684b9f198ac52b634ee44b3b6f52a
treed5b9c329e93245d4decb5a1e48f32c676a4ac7df
parent469bc504d008b274840aaec581587c6e58b0c2f2
[X86] Improve some shuffle decoding code to remove a conditional from a loop and reduce the number of temporary variables. NFCI

The NumControlBits variable was definitely sketchy. I think that only worked because the expected value was 1 or 2 and the number of lanes was 2 or 4. Had their been 8 lanes the number of bits should have been 3 not 4 as the previous code would have given.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334258 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/Utils/X86ShuffleDecode.cpp