Skip to content
  1. Oct 17, 2008
    • Chris Lattner's avatar
      add some simple hacky long double support for the CBE. This · 7e9e3b3d
      Chris Lattner authored
      should work for intel long double, but ppc long double aborts
      in convert.
      
      llvm-svn: 57672
      7e9e3b3d
    • Dan Gohman's avatar
      Fun x86 encoding tricks: when adding an immediate value of 128, · ca0546fa
      Dan Gohman authored
      use a SUB instruction instead of an ADD, because -128 can be
      encoded in an 8-bit signed immediate field, while +128 can't be.
      This avoids the need for a 32-bit immediate field in this case.
      
      A similar optimization applies to 64-bit adds with 0x80000000,
      with the 32-bit signed immediate field.
      
      To support this, teach tablegen how to handle 64-bit constants.
      
      llvm-svn: 57663
      ca0546fa
    • 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
    • Dan Gohman's avatar
      Use 0 instead of false to return a null pointer. · 215742a9
      Dan Gohman authored
      llvm-svn: 57660
      215742a9
  2. Oct 16, 2008
  3. Oct 15, 2008
Loading