aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-12-16 00:29:41 +0000
committerDale Johannesen <dalej@apple.com>2009-12-16 00:29:41 +0000
commit5d25f9bbd3a3106239e6b957c233b598d36576fe (patch)
tree68d1de65d3aaa29b83ca49224b9ec0edc15a947d /lib/Transforms
parentb6bf5b926d84470a0527691b20f60c31f6bf7978 (diff)
downloadexternal_llvm-5d25f9bbd3a3106239e6b957c233b598d36576fe.zip
external_llvm-5d25f9bbd3a3106239e6b957c233b598d36576fe.tar.gz
external_llvm-5d25f9bbd3a3106239e6b957c233b598d36576fe.tar.bz2
Do better with physical reg operands (typically, from inline asm)
in local register allocator. If a reg-reg copy has a phys reg input and a virt reg output, and this is the last use of the phys reg, assign the phys reg to the virt reg. If a reg-reg copy has a phys reg output and we need to reload its spilled input, reload it directly into the phys reg than passing it through another reg. Following 76208, there is sometimes no dependency between the def of a phys reg and its use; this creates a window where that phys reg can be used for spilling (this is true in linear scan also). This is bad and needs to be fixed a better way, although 76208 works too well in practice to be reverted. However, there should normally be no spilling within inline asm blocks. The patch here goes a long way towards making this actually be true. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
0 files changed, 0 insertions, 0 deletions