aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-12-20 11:19:37 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-12-20 11:19:37 +0000
commit24680c24d868d419a41e4f99171447f5aec12b98 (patch)
treeff41b848e82d661054e599a8692485070e7406d5 /llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp
parentfe198ced31e9d055e8d27fa992423d59af4f1535 (diff)
downloadllvm-24680c24d868d419a41e4f99171447f5aec12b98.zip
llvm-24680c24d868d419a41e4f99171447f5aec12b98.tar.gz
llvm-24680c24d868d419a41e4f99171447f5aec12b98.tar.bz2
Begin teaching the X86 target how to efficiently codegen patterns that
use the zero-undefined variants of CTTZ and CTLZ. These are just simple patterns for now, there is more to be done to make real world code using these constructs be optimized and codegen'ed properly on X86. The existing tests are spiffed up to check that we no longer generate unnecessary cmov instructions, and that we generate the very important 'xor' to transform bsr which counts the index of the most significant one bit to the number of leading (most significant) zero bits. Also they now check that when the variant with defined zero result is used, the cmov is still produced. llvm-svn: 146974
Diffstat (limited to 'llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp')
0 files changed, 0 insertions, 0 deletions