Skip to content
  1. Jan 08, 2005
  2. Jan 07, 2005
  3. Jan 02, 2005
    • Chris Lattner's avatar
      Make the 2-address instruction lowering pass smarter in two ways: · 9590870a
      Chris Lattner authored
      1. If we are two-addressing a commutable instruction and the LHS is not the
         last use of the variable, see if the instruction is the last use of the
         RHS.  If so, commute the instruction, allowing us to avoid a
         register-register copy in many cases for common instructions like ADD, OR,
         AND, etc on X86.
      2. If #1 doesn't hold, and if this is an instruction that also existing in
         3-address form, promote the instruction to a 3-address instruction to
         avoid the register-register copy.  We can do this for several common
         instructions in X86, including ADDrr, INC, DEC, etc.
      
      This patch implements test/Regression/CodeGen/X86/commute-two-addr.ll,
      overlap-add.ll, and overlap-shift.ll when I check in the X86 support for it.
      
      llvm-svn: 19245
      9590870a
  4. Dec 15, 2004
  5. Dec 07, 2004
  6. Dec 04, 2004
  7. Nov 28, 2004
  8. Nov 22, 2004
  9. Nov 21, 2004
  10. Nov 20, 2004
  11. Nov 19, 2004
  12. Nov 18, 2004
Loading