[PowerPC] Enable speculation of cttz/ctlz
authorHal Finkel <hfinkel@anl.gov>
Mon, 5 Jan 2015 05:24:42 +0000 (05:24 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 5 Jan 2015 05:24:42 +0000 (05:24 +0000)
commit0ef8f3189e5e75637a1ed4c408fad16ff6fcdd3d
tree4e5f53f4c7245ba525cc5df133fa5426b0b05caa
parent4f9a7277d1a262ec0113bea90029372ba23ecf1a
[PowerPC] Enable speculation of cttz/ctlz

PPC has an instruction for ctlz with defined zero behavior, and our lowering of
cttz (provided by DAGCombine) is also efficient and branchless, so speculating
these makes sense.

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