commit | e6f350d7558f2db6c39c0a9fc8beafb796d9919a | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Mon Mar 30 21:34:07 2009 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Mon Mar 30 21:34:07 2009 +0000 |
tree | 8be8aeaddc0757d52150e560092aecbc5a4062ab | |
parent | f54229192c22559389b0ef47e731fd628db963c5 [diff] |
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