diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-11-30 22:55:54 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-11-30 22:55:54 +0000 |
commit | 020d8d4c631a16fa797dc233655442c6cadd63cf (patch) | |
tree | 895df9bffbe94532162ba80a0f4296d86f2814b1 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 132f3133ae348126993979867cf58de673016d4a (diff) | |
download | bcm5719-llvm-020d8d4c631a16fa797dc233655442c6cadd63cf.tar.gz bcm5719-llvm-020d8d4c631a16fa797dc233655442c6cadd63cf.zip |
New virtual registers created for spill intervals should inherit allocation hints from the original register.
This helps us avoid silly copies when rematting values that are copied to a physical register:
leaq _.str44(%rip), %rcx
movq %rcx, %rsi
call _strcmp
becomes:
leaq _.str44(%rip), %rsi
call _strcmp
The coalescer will not touch the movq because that would tie down the physical register.
llvm-svn: 90163
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions