OSDN Git Service

[X86] Simplify the TSFlags checking code in EvexToVexInstPass. NFCI
authorCraig Topper <craig.topper@intel.com>
Tue, 19 Jun 2018 03:17:46 +0000 (03:17 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 19 Jun 2018 03:17:46 +0000 (03:17 +0000)
commitfe7e53ea94c1eb9e43c926fc9d674d5c5a8260fa
tree8ff056c6bc1c84a3fa9758cd28651c97427cc5ce
parentce641730174e9e7c2429deee162cf22b25c73b16
[X86] Simplify the TSFlags checking code in EvexToVexInstPass. NFCI

The code was previously checking the L2 and L flag on 3 separate lines, treating the combination as an encoding. Instead its better to think of the L2 bit as being something that can't be done with VEX and early returning. Then we just need to check the L bit.

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