summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-05-30 12:30:50 +0000
committerTim Northover <tnorthover@apple.com>2013-05-30 12:30:50 +0000
commit69cd121dd9945429b565b6a5eb8719130de880a7 (patch)
tree83f34d57a4b677d02eba429a26f1f7bd9845320a /clang/lib/CodeGen/CodeGenFunction.cpp
parent994d66a345819d0bf6499589ba40beda73633fad (diff)
downloadbcm5719-llvm-69cd121dd9945429b565b6a5eb8719130de880a7.tar.gz
bcm5719-llvm-69cd121dd9945429b565b6a5eb8719130de880a7.zip
Fix rematerialization into physical registers.
r182872 introduced a bug in how the register-coalescer's rematerialization handled defining a physical register. It relied on the output of the coalescer's setRegisters method to determine whether the replacement instruction needed an implicit-def. However, this value isn't necessarily the same as the CopyMI's actual destination register which is what the rest of the basic-block expects us to be defining. The commit changes the rematerializer to use the actual register attached to CopyMI in its decision. This will be tested soon by an X86 patch which moves everything to using MOV32r0 instead of other sizes. llvm-svn: 182925
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud