Files
llvm-tms34010/llvm/lib/CodeGen
Chris Lattner e2e13caeb2 canonicalize constants to the RHS of addc/adde. If nothing uses the carry out of
addc, turn it into add.

This allows us to compile:

long long test(long long A, unsigned B) {
  return (A + ((long long)B << 32)) & 123;
}

into:

_test:
        movl $123, %eax
        andl 4(%esp), %eax
        xorl %edx, %edx
        ret

instead of:
_test:
        xorl %edx, %edx
        movl %edx, %eax
        addl 4(%esp), %eax   ;; add of zero
        andl $123, %eax
        ret

llvm-svn: 34909
2007-03-04 20:03:15 +00:00
..
2007-02-21 22:48:45 +00:00
2007-02-22 16:39:03 +00:00
2007-03-01 20:26:43 +00:00
2007-02-22 16:22:15 +00:00
2007-03-01 20:25:32 +00:00
2007-03-04 04:41:04 +00:00
2007-02-28 07:40:50 +00:00
2006-11-03 19:15:55 +00:00
2006-11-16 20:11:33 +00:00
2007-02-01 05:32:05 +00:00