summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/legalize-shift-64.ll
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-07-25 18:35:19 +0000
committerAndrew Trick <atrick@apple.com>2013-07-25 18:35:19 +0000
commit8adae96fd905daa8835b6fde5e74e25d818c7471 (patch)
tree020563bcb74479535c2e949ca6916e2c277f307f /test/CodeGen/X86/legalize-shift-64.ll
parent6ea2b9608a38e9b53d208ff85051e8e3ed53192c (diff)
downloadllvm-8adae96fd905daa8835b6fde5e74e25d818c7471.tar.gz
llvm-8adae96fd905daa8835b6fde5e74e25d818c7471.tar.bz2
llvm-8adae96fd905daa8835b6fde5e74e25d818c7471.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/legalize-shift-64.ll')
-rw-r--r--test/CodeGen/X86/legalize-shift-64.ll4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/CodeGen/X86/legalize-shift-64.ll b/test/CodeGen/X86/legalize-shift-64.ll
index 3cdd49412a..77364688af 100644
--- a/test/CodeGen/X86/legalize-shift-64.ll
+++ b/test/CodeGen/X86/legalize-shift-64.ll
@@ -1,6 +1,4 @@
-; RUN: true
-; disabled: llc -mcpu=generic -mtriple=i686-unknown-unknown < %s | FileCheck %s
-; Disabled for a single commit only.
+; RUN: llc -mcpu=generic -mtriple=i686-unknown-unknown < %s | FileCheck %s
define i64 @test1(i32 %xx, i32 %test) nounwind {
%conv = zext i32 %xx to i64
%and = and i32 %test, 7