aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/pr3495.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-09-05 01:19:16 +0000
committerBob Wilson <bob.wilson@apple.com>2009-09-05 01:19:16 +0000
commitda4ae4be5b2b8fa35ef989e548530833428f36bf (patch)
treec52591d2d1555f1ff541da9ca54accc9a68118ad /test/CodeGen/X86/pr3495.ll
parentbd1d6a8ce1197de640df52e1da2e63e8ce8d8705 (diff)
downloadexternal_llvm-da4ae4be5b2b8fa35ef989e548530833428f36bf.zip
external_llvm-da4ae4be5b2b8fa35ef989e548530833428f36bf.tar.gz
external_llvm-da4ae4be5b2b8fa35ef989e548530833428f36bf.tar.bz2
Stabilize the order of live intervals in the priority_queue used by the
linear scan reg alloc. This fixes a problem I ran into where extracting a function from a larger file caused the generated code to change (masking the problem I was trying to debug) because the allocator behaved differently. This changes the results for two X86 regression checks. stack-color-with-reg is improved, with one less instruction, but pr3495 is worse, with one more copy. As far as I can tell, these tests were just getting lucky or unlucky, so I've changed the expected results. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pr3495.ll')
-rw-r--r--test/CodeGen/X86/pr3495.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/X86/pr3495.ll b/test/CodeGen/X86/pr3495.ll
index ca6204c..368c38c 100644
--- a/test/CodeGen/X86/pr3495.ll
+++ b/test/CodeGen/X86/pr3495.ll
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86 -stats |& grep {Number of reloads omited} | grep 2
-; RUN: llvm-as < %s | llc -march=x86 -stats |& not grep {Number of available reloads turned into copies}
-; RUN: llvm-as < %s | llc -march=x86 -stats |& grep {Number of machine instrs printed} | grep 39
+; RUN: llvm-as < %s | llc -march=x86 -stats |& grep {Number of reloads omited} | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -stats |& grep {Number of available reloads turned into copies} | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -stats |& grep {Number of machine instrs printed} | grep 40
; PR3495
; The loop reversal kicks in once here, resulting in one fewer instruction.