Skip to content
  • Dan Gohman's avatar
    Define patterns for shld and shrd that match immediate · a39b0a1f
    Dan Gohman authored
    shift counts, and patterns that match dynamic shift counts
    when the subtract is obscured by a truncate node.
    
    Add DAGCombiner support for recognizing rotate patterns
    when the shift counts are defined by truncate nodes.
    
    Fix and simplify the code for commuting shld and shrd
    instructions to work even when the given instruction doesn't
    have a parent, and when the caller needs a new instruction.
    
    These changes allow LLVM to use the shld, shrd, rol, and ror
    instructions on x86 to replace equivalent code using two
    shifts and an or in many more cases.
    
    llvm-svn: 57662
    a39b0a1f
Loading