OSDN Git Service

[X86] Return false from hasAndNotCompare if the comparision value is a constant.
authorCraig Topper <craig.topper@intel.com>
Sun, 23 Dec 2018 05:52:55 +0000 (05:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 23 Dec 2018 05:52:55 +0000 (05:52 +0000)
commit21aebe46de4625a9507ac5547ee23f282eca8ef0
tree0ddebd9e782e89b71cf5949af51fa76b9a52a3dc
parentfdf69948e5804ce62c75ec722047d47317b754b4
[X86] Return false from hasAndNotCompare if the comparision value is a constant.

We won't end up using an ANDN instruction in this case so we should generate the same code we do for pre-BMI targets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350018 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/bmi.ll