summaryrefslogtreecommitdiff
path: root/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-01 16:08:06 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-01 16:08:06 +0000
commit4e5c5db786a3f332a48cce4df11a954cbf5544f2 (patch)
treec9525937d53dc6994061934ee2c9ceb37020b706 /lib/Target/TargetLoweringObjectFile.cpp
parentfc533c3fb32a2b7a2fb2426ebe2980264d4e4dd3 (diff)
[SelectionDAG] Use known ones to provide a better bound for the known zeros for CTTZ/CTLZ operations.
This is the SelectionDAG version of D32521. If know where at least one 1 is located in the input to these intrinsics we can place an upper bound on the number of bits needed to represent the count and thus increase the number of known zeros in the output. I think we can also refine this further for CTTZ_UNDEF/CTLZ_UNDEF by assuming that the answer will never be BitWidth. I've left this out for now because it caused other test failures across multiple targets. Usually because of turning ADD into OR based on this new information. I'll fix CTPOP in a future patch. Differential Revision: https://reviews.llvm.org/D32692 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions