R600: Make cttz / ctlz cheap to speculate
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 13 Jan 2015 19:46:48 +0000 (19:46 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 13 Jan 2015 19:46:48 +0000 (19:46 +0000)
commit9e495c518c1443ad88a5f6f1ab0e0185ef1e20ed
tree8ae8839e454d216e26b8898bb813f38b6dab5a84
parent88e1d95d4df526352e183b57b2ea6a3d45199619
R600: Make cttz / ctlz cheap to speculate

Speculating things is generally good. SI+ has instructions for these
for 32-bit values. This is still probably better even with the expansion
for 64-bit values, although it is odd that this callback doesn't have
the size as a parameter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225822 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUISelLowering.h
test/CodeGen/R600/cttz-ctlz.ll [new file with mode: 0644]