1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -pre-alloc-split -stats |& \
2 ; RUN: grep {pre-alloc-split} | grep {Number of intervals split} | grep 1
4 @current_surfaces.b = external global i1 ; <i1*> [#uses=1]
6 declare double @sin(double) nounwind readonly
8 declare double @asin(double) nounwind readonly
10 declare double @tan(double) nounwind readonly
12 define fastcc void @trace_line(i32 %line) nounwind {
14 %.b3 = load i1* @current_surfaces.b ; <i1> [#uses=1]
15 br i1 %.b3, label %bb, label %return
17 bb: ; preds = %bb9.i, %entry
18 %.rle4 = phi double [ %8, %bb9.i ], [ 0.000000e+00, %entry ] ; <double> [#uses=1]
19 %0 = load double* null, align 8 ; <double> [#uses=3]
20 %1 = fcmp une double %0, 0.000000e+00 ; <i1> [#uses=1]
21 br i1 %1, label %bb9.i, label %bb13.i
24 %2 = sub double %.rle4, %0 ; <double> [#uses=0]
25 %3 = tail call double @asin(double 0.000000e+00) nounwind readonly ; <double> [#uses=0]
26 %4 = tail call double @sin(double 0.000000e+00) nounwind readonly ; <double> [#uses=1]
27 %5 = mul double %4, %0 ; <double> [#uses=1]
28 %6 = tail call double @tan(double 0.000000e+00) nounwind readonly ; <double> [#uses=0]
29 %7 = mul double %5, 0.000000e+00 ; <double> [#uses=1]
30 %8 = add double %7, 0.000000e+00 ; <double> [#uses=1]
31 br i1 false, label %return, label %bb
36 return: ; preds = %bb9.i, %entry