[X86] Add BSR to isUseDefConvertible.
authorCraig Topper <craig.topper@intel.com>
Tue, 18 Dec 2018 20:03:54 +0000 (20:03 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 18 Dec 2018 20:03:54 +0000 (20:03 +0000)
commit18a9d545e16fecca6b7ffe039f86a55f6fb9c022
treeecfa6351b8fc979620d7292f72594b47d41983c1
parent20853a7807790a6b5ca13aab1edb0b4e96199915
[X86] Add BSR to isUseDefConvertible.

We already had BSF here as part of __builtin_ffs improvements and I was just wondering yesterday whether we should have BSR there.

This addresses one issue from PR40090.

llvm-svn: 349531
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/test/CodeGen/X86/pr40090.ll [new file with mode: 0644]