summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr3457.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-10 08:30:11 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-10 08:30:11 +0000
commitf0e366a929a1acb4bc14df5ef831cce74607a967 (patch)
tree866134c7f8aa0de917d54044a704b2e4489db196 /test/CodeGen/X86/pr3457.ll
parentf66d7b5a51f956901e5949413965fecc41cc9761 (diff)
downloadllvm-f0e366a929a1acb4bc14df5ef831cce74607a967.tar.gz
llvm-f0e366a929a1acb4bc14df5ef831cce74607a967.tar.bz2
llvm-f0e366a929a1acb4bc14df5ef831cce74607a967.tar.xz
Fix PR3457: Ignore control successors when looking for closest scheduled successor. A control successor doesn't read result(s) produced by the scheduling unit being evaluated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pr3457.ll')
-rw-r--r--test/CodeGen/X86/pr3457.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr3457.ll b/test/CodeGen/X86/pr3457.ll
new file mode 100644
index 0000000000..36d4a5d554
--- /dev/null
+++ b/test/CodeGen/X86/pr3457.ll
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | not grep fstpt
+; PR3457
+; rdar://6548010
+
+define void @foo(double* nocapture %P) nounwind {
+entry:
+ %0 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
+ %1 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
+ %2 = mul double %0, %0 ; <double> [#uses=1]
+ %3 = mul double %1, %1 ; <double> [#uses=1]
+ %4 = add double %2, %3 ; <double> [#uses=1]
+ store double %4, double* %P, align 8
+ ret void
+}
+
+declare double @test(...)