[X86][SLH] Regroup the instructions in isDataInvariantLoad a little. NFC
authorCraig Topper <craig.topper@intel.com>
Fri, 13 Jul 2018 22:41:46 +0000 (22:41 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 13 Jul 2018 22:41:46 +0000 (22:41 +0000)
commit445abf700d2fc75ef2ec19dee6c969bea45011d3
tree262ad9ec259fd3c73c377cf06b543174c5bfbf51
parentf5b1c2fa3913b89253ba13bcb36b1beb060c93d0
[X86][SLH] Regroup the instructions in isDataInvariantLoad a little. NFC

-Move BSF/BSR to the same group as TZCNT/LZCNT/POPCNT.
-Split some of the bit manipulation instructions away from TZCNT/LZCNT/POPCNT. These are things like 'x & (x - 1)' which are composed of a few simple arithmetic operations. These aren't nearly as complicated/surprising as counting bits.
-Move BEXTR/BZHI into their own group. They aren't like a simple arithmethic op or the bit manipulation instructions. They're more like a shift+and.

Differential Revision: https://reviews.llvm.org/D49312

llvm-svn: 337065
llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp