Skip to content
  • Chandler Carruth's avatar
    Begin teaching the X86 target how to efficiently codegen patterns that · 24680c24
    Chandler Carruth authored
    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
    24680c24
Loading