summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/pre-split9.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-28 00:47:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-28 00:47:49 +0000
commitfab31680e1e0d8125c9f57f178c7015b048fb0d3 (patch)
tree5c737381020e2c5d8cbae7c16376de941efccc2a /llvm/test/CodeGen/X86/pre-split9.ll
parent460f8ee507bef945f9ba35c2184f50968b9629c9 (diff)
downloadbcm5719-llvm-fab31680e1e0d8125c9f57f178c7015b048fb0d3.tar.gz
bcm5719-llvm-fab31680e1e0d8125c9f57f178c7015b048fb0d3.zip
Avoid putting a split past the end of the live range; always shrink wrap live interval in the barrier mbb.
llvm-svn: 58309
Diffstat (limited to 'llvm/test/CodeGen/X86/pre-split9.ll')
-rw-r--r--llvm/test/CodeGen/X86/pre-split9.ll38
1 files changed, 38 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/pre-split9.ll b/llvm/test/CodeGen/X86/pre-split9.ll
new file mode 100644
index 00000000000..bfafe85b8c6
--- /dev/null
+++ b/llvm/test/CodeGen/X86/pre-split9.ll
@@ -0,0 +1,38 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -pre-alloc-split -stats |& \
+; RUN: grep {pre-alloc-split} | grep {Number of intervals split} | grep 1
+
+@current_surfaces.b = external global i1 ; <i1*> [#uses=1]
+
+declare double @sin(double) nounwind readonly
+
+declare double @asin(double) nounwind readonly
+
+declare double @tan(double) nounwind readonly
+
+define fastcc void @trace_line(i32 %line) nounwind {
+entry:
+ %.b3 = load i1* @current_surfaces.b ; <i1> [#uses=1]
+ br i1 %.b3, label %bb, label %return
+
+bb: ; preds = %bb9.i, %entry
+ %.rle4 = phi double [ %8, %bb9.i ], [ 0.000000e+00, %entry ] ; <double> [#uses=1]
+ %0 = load double* null, align 8 ; <double> [#uses=3]
+ %1 = fcmp une double %0, 0.000000e+00 ; <i1> [#uses=1]
+ br i1 %1, label %bb9.i, label %bb13.i
+
+bb9.i: ; preds = %bb
+ %2 = sub double %.rle4, %0 ; <double> [#uses=0]
+ %3 = tail call double @asin(double 0.000000e+00) nounwind readonly ; <double> [#uses=0]
+ %4 = tail call double @sin(double 0.000000e+00) nounwind readonly ; <double> [#uses=1]
+ %5 = mul double %4, %0 ; <double> [#uses=1]
+ %6 = tail call double @tan(double 0.000000e+00) nounwind readonly ; <double> [#uses=0]
+ %7 = mul double %5, 0.000000e+00 ; <double> [#uses=1]
+ %8 = add double %7, 0.000000e+00 ; <double> [#uses=1]
+ br i1 false, label %return, label %bb
+
+bb13.i: ; preds = %bb
+ unreachable
+
+return: ; preds = %bb9.i, %entry
+ ret void
+}
OpenPOWER on IntegriCloud