diff options
| author | Andrew Trick <atrick@apple.com> | 2013-07-25 18:35:19 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2013-07-25 18:35:19 +0000 |
| commit | 8bb0a251fdab0111f5438d17de42270331c7ad55 (patch) | |
| tree | 9141551f548209f0a8c0f9b73bd48dd797b4199a /llvm/test/CodeGen/ARM | |
| parent | 8485257d6d55db47a570914ada461a0ecbffb04a (diff) | |
| download | bcm5719-llvm-8bb0a251fdab0111f5438d17de42270331c7ad55.tar.gz bcm5719-llvm-8bb0a251fdab0111f5438d17de42270331c7ad55.zip | |
Evict local live ranges if they can be reassigned.
The previous change to local live range allocation also suppressed
eviction of local ranges. In rare cases, this could result in more
expensive register choices. This commit actually revives a feature
that I added long ago: check if live ranges can be reassigned before
eviction. But now it only happens in rare cases of evicting a local
live range because another local live range wants a cheaper register.
The benefit is improved code size for some benchmarks on x86 and armv7.
I measured no significant compile time increase and performance
changes are noise.
llvm-svn: 187140
Diffstat (limited to 'llvm/test/CodeGen/ARM')
| -rw-r--r-- | llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll b/llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll index 13d8da67a53..0217a4a8fb8 100644 --- a/llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll +++ b/llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll @@ -1,7 +1,5 @@ -; RUN: true -; Disabled for a single commit only. -; disabled: llc < %s -mtriple=thumbv7-apple-darwin -mcpu=cortex-a9 | FileCheck %s -; disabled: llc < %s -mtriple=thumbv7-apple-darwin -mcpu=swift | FileCheck %s +; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mcpu=cortex-a9 | FileCheck %s +; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mcpu=swift | FileCheck %s ; Avoid some 's' 16-bit instruction which partially update CPSR (and add false ; dependency) when it isn't dependent on last CPSR defining instruction. ; rdar://8928208 |

