Home | History | Annotate | Download | only in X86
      1 ; Without list-burr scheduling we may not see the difference in codegen here.
      2 ; RUN: llc < %s -march=x86-64 -post-RA-scheduler -pre-RA-sched=list-burr -break-anti-dependencies=none > %t
      3 ; RUN:   grep {%xmm0} %t | count 14
      4 ; RUN:   not grep {%xmm1} %t
      5 ; RUN: llc < %s -march=x86-64 -post-RA-scheduler -break-anti-dependencies=critical > %t
      6 ; RUN:   grep {%xmm0} %t | count 7
      7 ; RUN:   grep {%xmm1} %t | count 7
      8 
      9 define void @goo(double* %r, double* %p, double* %q) nounwind {
     10 entry:
     11 	%0 = load double* %p, align 8
     12 	%1 = fadd double %0, 1.100000e+00
     13 	%2 = fmul double %1, 1.200000e+00
     14 	%3 = fadd double %2, 1.300000e+00
     15 	%4 = fmul double %3, 1.400000e+00
     16 	%5 = fadd double %4, 1.500000e+00
     17 	%6 = fptosi double %5 to i32
     18 	%7 = load double* %r, align 8
     19 	%8 = fadd double %7, 7.100000e+00
     20 	%9 = fmul double %8, 7.200000e+00
     21 	%10 = fadd double %9, 7.300000e+00
     22 	%11 = fmul double %10, 7.400000e+00
     23 	%12 = fadd double %11, 7.500000e+00
     24 	%13 = fptosi double %12 to i32
     25 	%14 = icmp slt i32 %6, %13
     26 	br i1 %14, label %bb, label %return
     27 
     28 bb:
     29 	store double 9.300000e+00, double* %q, align 8
     30 	ret void
     31 
     32 return:
     33 	ret void
     34 }
     35