summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fold-pcmpeqd-0.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-11-10 07:43:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-11-10 07:43:16 +0000
commit623a7e146bd86747dc46a6f8bb9993fc217d6b78 (patch)
tree72b44ba84e3cb347279c411ac8b159e6fecaf9b0 /test/CodeGen/X86/fold-pcmpeqd-0.ll
parent4dbe96e22ff4989577cf4854f717b9d972094f87 (diff)
downloadllvm-623a7e146bd86747dc46a6f8bb9993fc217d6b78.tar.gz
llvm-623a7e146bd86747dc46a6f8bb9993fc217d6b78.tar.bz2
llvm-623a7e146bd86747dc46a6f8bb9993fc217d6b78.tar.xz
Use a bigger hammer to fix PR11314 by disabling the "forcing two-address
instruction lower optimization" in the pre-RA scheduler. The optimization, rather the hack, was done before MI use-list was available. Now we should be able to implement it in a better way, perhaps in the two-address pass until a MI scheduler is available. Now that the scheduler has to backtrack to handle call sequences. Adding artificial scheduling constraints is just not safe. Furthermore, the hack is not taking all the other scheduling decisions into consideration so it's just as likely to pessimize code. So I view disabling this optimization goodness regardless of PR11314. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fold-pcmpeqd-0.ll')
-rw-r--r--test/CodeGen/X86/fold-pcmpeqd-0.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fold-pcmpeqd-0.ll b/test/CodeGen/X86/fold-pcmpeqd-0.ll
index 647bbdb7f0..1d315ffe35 100644
--- a/test/CodeGen/X86/fold-pcmpeqd-0.ll
+++ b/test/CodeGen/X86/fold-pcmpeqd-0.ll
@@ -1,5 +1,7 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=yonah -regalloc=linearscan | FileCheck --check-prefix=I386 %s
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck --check-prefix=X86-64 %s
+; DISABLED: llc < %s -mtriple=i386-apple-darwin -mcpu=yonah -regalloc=linearscan | FileCheck --check-prefix=I386 %s
+
+; i386 test has been disabled when scheduler 2-addr hack is disabled.
; This testcase shouldn't need to spill the -1 value,
; so it should just use pcmpeqd to materialize an all-ones vector.