diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-01 02:03:43 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-01 02:03:43 +0000 |
commit | c2f95b56db5b87a93bcf4490a232fd5dcb72d292 (patch) | |
tree | 1157d7b09dc9ea025627fbe9d0aeb8a33c42a3f8 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 961763e35ac7ed92817061cf11941b3074b00aec (diff) | |
download | bcm5719-llvm-c2f95b56db5b87a93bcf4490a232fd5dcb72d292.tar.gz bcm5719-llvm-c2f95b56db5b87a93bcf4490a232fd5dcb72d292.zip |
Minor optimization:
Look for situations like this:
%reg1024<def> = MOV r1
%reg1025<def> = MOV r0
%reg1026<def> = ADD %reg1024, %reg1025
r0 = MOV %reg1026
Commute the ADD to hopefully eliminate an otherwise unavoidable copy.
llvm-svn: 65752
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
0 files changed, 0 insertions, 0 deletions