1 ; RUN: llc < %s -march=x86 -mattr=+sse2 -stats |& not grep {Number of register spills}
3 define fastcc void @fourn(double* %data, i32 %isign) nounwind {
7 bb: ; preds = %bb, %entry
8 %indvar93 = phi i32 [ 0, %entry ], [ %idim.030, %bb ] ; <i32> [#uses=2]
9 %idim.030 = add i32 %indvar93, 1 ; <i32> [#uses=1]
10 %0 = add i32 %indvar93, 2 ; <i32> [#uses=1]
11 %1 = icmp sgt i32 %0, 2 ; <i1> [#uses=1]
12 br i1 %1, label %bb30.loopexit, label %bb
14 bb3: ; preds = %bb30.loopexit, %bb25, %bb3
15 %2 = load i32* null, align 4 ; <i32> [#uses=1]
16 %3 = mul i32 %2, 0 ; <i32> [#uses=1]
17 %4 = icmp slt i32 0, %3 ; <i1> [#uses=1]
18 br i1 %4, label %bb18, label %bb3
21 %5 = fdiv double %11, 0.000000e+00 ; <double> [#uses=1]
22 %6 = tail call double @sin(double %5) nounwind readonly ; <double> [#uses=1]
23 br label %bb24.preheader
25 bb22.preheader: ; preds = %bb24.preheader, %bb22.preheader
26 br label %bb22.preheader
28 bb25: ; preds = %bb24.preheader
29 %7 = fmul double 0.000000e+00, %6 ; <double> [#uses=0]
30 %8 = add i32 %i3.122100, 0 ; <i32> [#uses=1]
31 %9 = icmp sgt i32 %8, 0 ; <i1> [#uses=1]
32 br i1 %9, label %bb3, label %bb24.preheader
34 bb24.preheader: ; preds = %bb25, %bb18
35 %i3.122100 = or i32 0, 1 ; <i32> [#uses=2]
36 %10 = icmp slt i32 0, %i3.122100 ; <i1> [#uses=1]
37 br i1 %10, label %bb25, label %bb22.preheader
39 bb30.loopexit: ; preds = %bb
40 %11 = fmul double 0.000000e+00, 0x401921FB54442D1C ; <double> [#uses=1]
44 declare double @sin(double) nounwind readonly