diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-30 21:34:07 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-30 21:34:07 +0000 |
commit | 09f5be814639e29bebdf818cff7baaa5a81cb22c (patch) | |
tree | d165554fcde103195bd22de5821544e0fe29ccb5 /clang/lib/Driver/HostInfo.cpp | |
parent | 6683b8a272092fde47ddf9e27ef4344a9224cee3 (diff) | |
download | bcm5719-llvm-09f5be814639e29bebdf818cff7baaa5a81cb22c.tar.gz bcm5719-llvm-09f5be814639e29bebdf818cff7baaa5a81cb22c.zip |
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.
llvm-svn: 68065
Diffstat (limited to 'clang/lib/Driver/HostInfo.cpp')
0 files changed, 0 insertions, 0 deletions