[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)
commit46c0b368d696744abdefeab23bb1f44179b8d2e4
treed13c8e8eca3867d4b94d1917bf30c665744b2eae
parentf66a36d2dc2641c7056be5329f3491a159e21881
[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.

llvm-svn: 335015
llvm/lib/Target/X86/X86EvexToVex.cpp