Evan Cheng e6f350d755 Turn a 2-address instruction into a 3-address one when it's profitable even if the two-address operand is killed.
e.g.
%reg1024<def> = MOV r1
%reg1025<def> = ADD %reg1024, %reg1026
r0            = MOV %reg1025

If it's not possible / profitable to commute ADD, then turning ADD into a LEA saves a copy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68065 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-30 21:34:07 +00:00
..
2009-03-25 16:43:59 +00:00
2009-03-24 21:36:09 +00:00
2009-03-21 18:12:24 +00:00
2009-03-06 17:59:58 +00:00
2009-03-21 18:12:24 +00:00