void cg_step(double *xtemp, double *x, double *d, double alpha, long int n) {
  long int n5, i;
  n5 = n % 5;
  if (alpha == -((double)1)) {
    for (i = 0; i < n5; i++)
      xtemp[i] = x[i] - d[i];
    for (; i < n; i += 5) {
      xtemp[i] = x[i] - d[i];
      xtemp[i + 1] = x[i + 1] - d[i + 1];
      xtemp[i + 2] = x[i + 2] - d[i + 2];
      xtemp[i + 3] = x[i + 3] - d[i + 3];
      xtemp[i + 4] = x[i + 4] - d[i + 4];
    }
  } else {
    for (i = 0; i < n5; i++)
      xtemp[i] = x[i] + alpha * d[i];
    for (; i < n; i += 5) {
      xtemp[i] = x[i] + alpha * d[i];
      xtemp[i + 1] = x[i + 1] + alpha * d[i + 1];
      xtemp[i + 2] = x[i + 2] + alpha * d[i + 2];
      xtemp[i + 3] = x[i + 3] + alpha * d[i + 3];
      xtemp[i + 4] = x[i + 4] + alpha * d[i + 4];
    }
  }
  return;
}


x86 assembly (clang, -O0):
<cg_step>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    $0x5,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xec8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    128e <cg_step+0x18e>
jp     128e <cg_step+0x18e>
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    1196 <cg_step+0x96>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1150 <cg_step+0x50>
jmp    119b <cg_step+0x9b>
mov    -0x38(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    1289 <cg_step+0x189>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
subsd  0x8(%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x8(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
subsd  0x10(%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x10(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x18(%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
subsd  0x18(%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x18(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x20(%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
subsd  0x20(%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x20(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x38(%rbp)
jmp    119b <cg_step+0x9b>
jmp    1422 <cg_step+0x322>
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    12e9 <cg_step+0x1e9>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1296 <cg_step+0x196>
jmp    12ee <cg_step+0x1ee>
mov    -0x38(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    141d <cg_step+0x31d>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x8(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x10(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x18(%rax,%rcx,8),%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x18(%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x18(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x20(%rax,%rcx,8),%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x20(%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,0x20(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x38(%rbp)
jmp    12ee <cg_step+0x1ee>
jmp    1422 <cg_step+0x322>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cg_step>:
push   %rbp
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r8
mov    %rdx,%r11
movabs $0x6666666666666667,%rcx
66 66 66
mov    %r8,%rax
imul   %rcx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    %rdx
add    %rax,%rdx
lea    (%rdx,%rdx,4),%rax
mov    %r8,%rcx
sub    %rax,%rcx
ucomisd 0xec5(%rip),%xmm0
jne    11ea <cg_step+0xea>
jp     11ea <cg_step+0xea>
test   %rcx,%rcx
jle    12a6 <cg_step+0x1a6>
movsd  (%rsi),%xmm0
subsd  (%r11),%xmm0
movsd  %xmm0,(%rdi)
cmp    $0x1,%rcx
je     1310 <cg_step+0x210>
movsd  0x8(%rsi),%xmm0
subsd  0x8(%r11),%xmm0
movsd  %xmm0,0x8(%rdi)
cmp    $0x2,%rcx
je     1310 <cg_step+0x210>
movsd  0x10(%rsi),%xmm0
subsd  0x10(%r11),%xmm0
movsd  %xmm0,0x10(%rdi)
cmp    $0x3,%rcx
je     1310 <cg_step+0x210>
movsd  0x18(%rsi),%xmm0
subsd  0x18(%r11),%xmm0
movsd  %xmm0,0x18(%rdi)
cmp    $0x4,%rcx
je     1310 <cg_step+0x210>
movsd  0x20(%rsi),%xmm0
subsd  0x20(%r11),%xmm0
movsd  %xmm0,0x20(%rdi)
movsd  0x28(%rsi),%xmm0
subsd  0x28(%r11),%xmm0
movsd  %xmm0,0x28(%rdi)
movsd  0x30(%rsi),%xmm0
subsd  0x30(%r11),%xmm0
movsd  %xmm0,0x30(%rdi)
jmp    1310 <cg_step+0x210>
test   %rcx,%rcx
jle    131a <cg_step+0x21a>
movsd  (%r11),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rsi),%xmm1
movsd  %xmm1,(%rdi)
cmp    $0x1,%rcx
je     131c <cg_step+0x21c>
movsd  0x8(%r11),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rsi),%xmm1
movsd  %xmm1,0x8(%rdi)
cmp    $0x2,%rcx
je     131c <cg_step+0x21c>
movsd  0x10(%r11),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x10(%rsi),%xmm1
movsd  %xmm1,0x10(%rdi)
cmp    $0x3,%rcx
je     131c <cg_step+0x21c>
movsd  0x18(%r11),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x18(%rsi),%xmm1
movsd  %xmm1,0x18(%rdi)
cmp    $0x4,%rcx
je     131c <cg_step+0x21c>
movsd  0x20(%r11),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rsi),%xmm1
movsd  %xmm1,0x20(%rdi)
movsd  0x28(%r11),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x28(%rsi),%xmm1
movsd  %xmm1,0x28(%rdi)
movsd  0x30(%r11),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x30(%rsi),%xmm1
movsd  %xmm1,0x30(%rdi)
jmp    131c <cg_step+0x21c>
xor    %ecx,%ecx
jmp    1310 <cg_step+0x210>
nopw   0x0(%rax,%rax,1)
movsd  (%rsi,%rcx,8),%xmm0
subsd  (%r11,%rcx,8),%xmm0
movsd  %xmm0,(%rdi,%rcx,8)
movsd  0x8(%rsi,%rcx,8),%xmm0
subsd  0x8(%r11,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rdi,%rcx,8)
movsd  0x10(%rsi,%rcx,8),%xmm0
subsd  0x10(%r11,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rdi,%rcx,8)
movsd  0x18(%rsi,%rcx,8),%xmm0
subsd  0x18(%r11,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rdi,%rcx,8)
movsd  0x20(%rsi,%rcx,8),%xmm0
subsd  0x20(%r11,%rcx,8),%xmm0
movsd  %xmm0,0x20(%rdi,%rcx,8)
add    $0x5,%rcx
cmp    %r8,%rcx
jl     12b0 <cg_step+0x1b0>
jmp    13c9 <cg_step+0x2c9>
xor    %ecx,%ecx
cmp    %r8,%rcx
jge    13c9 <cg_step+0x2c9>
mov    %rcx,%r10
not    %r10
add    %r8,%r10
movabs $0xcccccccccccccccd,%rbx
cc cc cc
mov    %r10,%rax
mul    %rbx
cmp    $0x5,%r10
jae    13d0 <cg_step+0x2d0>
mov    %rcx,%rax
nopl   0x0(%rax,%rax,1)
movsd  (%r11,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rsi,%rax,8),%xmm1
movsd  %xmm1,(%rdi,%rax,8)
movsd  0x8(%r11,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rsi,%rax,8),%xmm1
movsd  %xmm1,0x8(%rdi,%rax,8)
movsd  0x10(%r11,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x10(%rsi,%rax,8),%xmm1
movsd  %xmm1,0x10(%rdi,%rax,8)
movsd  0x18(%r11,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x18(%rsi,%rax,8),%xmm1
movsd  %xmm1,0x18(%rdi,%rax,8)
movsd  0x20(%r11,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rsi,%rax,8),%xmm1
movsd  %xmm1,0x20(%rdi,%rax,8)
add    $0x5,%rax
cmp    %r8,%rax
jl     1350 <cg_step+0x250>
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rdx,%r9
lea    (%rdi,%rcx,8),%r14
mov    %r10,%rax
mul    %rbx
shr    $0x2,%rdx
lea    (%rdx,%rdx,4),%rax
add    %rcx,%rax
lea    (%rdi,%rax,8),%rdx
add    $0x28,%rdx
lea    (%rsi,%rcx,8),%r10
lea    (%rsi,%rax,8),%rbx
add    $0x28,%rbx
lea    (%r11,%rcx,8),%r15
lea    (%r11,%rax,8),%rax
add    $0x28,%rax
cmp    %rbx,%r14
setb   %bpl
cmp    %rdx,%r10
setb   %bl
cmp    %rax,%r14
setb   %al
cmp    %rdx,%r15
setb   %dl
test   %bl,%bpl
jne    155f <cg_step+0x45f>
and    %dl,%al
jne    1567 <cg_step+0x467>
shr    $0x2,%r9
add    $0x1,%r9
mov    %r9,%r10
and    $0xfffffffffffffffe,%r10
lea    (%r10,%r10,4),%rax
add    %rcx,%rax
movapd %xmm0,%xmm8
unpcklpd %xmm0,%xmm8
shl    $0x3,%rcx
mov    %r10,%rdx
nopl   0x0(%rax)
movsd  (%rsi,%rcx,1),%xmm7
movsd  0x8(%rsi,%rcx,1),%xmm1
movsd  0x10(%rsi,%rcx,1),%xmm6
movsd  0x18(%rsi,%rcx,1),%xmm9
movhpd 0x28(%rsi,%rcx,1),%xmm7
movsd  (%r11,%rcx,1),%xmm2
movsd  0x8(%r11,%rcx,1),%xmm4
movsd  0x10(%r11,%rcx,1),%xmm3
movsd  0x18(%r11,%rcx,1),%xmm5
movhpd 0x28(%r11,%rcx,1),%xmm2
mulpd  %xmm8,%xmm2
addpd  %xmm7,%xmm2
movhpd 0x30(%rsi,%rcx,1),%xmm1
movhpd 0x30(%r11,%rcx,1),%xmm4
mulpd  %xmm8,%xmm4
addpd  %xmm1,%xmm4
movhpd 0x38(%rsi,%rcx,1),%xmm6
movhpd 0x38(%r11,%rcx,1),%xmm3
mulpd  %xmm8,%xmm3
addpd  %xmm6,%xmm3
movhpd 0x40(%rsi,%rcx,1),%xmm9
movhpd 0x40(%r11,%rcx,1),%xmm5
mulpd  %xmm8,%xmm5
addpd  %xmm9,%xmm5
movsd  0x20(%rsi,%rcx,1),%xmm1
movhpd 0x48(%rsi,%rcx,1),%xmm1
movsd  0x20(%r11,%rcx,1),%xmm6
movhpd 0x48(%r11,%rcx,1),%xmm6
mulpd  %xmm8,%xmm6
addpd  %xmm1,%xmm6
movapd %xmm2,%xmm1
unpcklpd %xmm4,%xmm1
movsd  %xmm6,%xmm2
unpckhpd %xmm3,%xmm4
unpcklpd %xmm5,%xmm3
movhlps %xmm5,%xmm6
movups %xmm6,0x40(%rdi,%rcx,1)
movupd %xmm4,0x30(%rdi,%rcx,1)
movupd %xmm2,0x20(%rdi,%rcx,1)
movupd %xmm3,0x10(%rdi,%rcx,1)
movupd %xmm1,(%rdi,%rcx,1)
add    $0x50,%rcx
add    $0xfffffffffffffffe,%rdx
jne    1460 <cg_step+0x360>
cmp    %r10,%r9
jne    1350 <cg_step+0x250>
jmp    13c9 <cg_step+0x2c9>
mov    %rcx,%rax
jmp    1350 <cg_step+0x250>
mov    %rcx,%rax
jmp    1350 <cg_step+0x250>

LLVM IR (-O0):
define void @cg_step(double* %0, double* %1, double* %2, double %3, i64 %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store double* %0, double** %6
store double* %1, double** %7
store double* %2, double** %8
store double %3, double* %9
store i64 %4, i64* %10
%13 = load i64, i64* %10
%14 = srem i64 %13, 5
store i64 %14, i64* %11
%15 = load double, double* %9
%16 = fcmp oeq double %15, -1.000000e+00
br i1 %16, label %17, label %120
17: ; preds = %5
store i64 0, i64* %12
br label %18
18: ; preds = %35, %17
%19 = load i64, i64* %12
%20 = load i64, i64* %11
%21 = icmp slt i64 %19, %20
br i1 %21, label %22, label %38
22: ; preds = %18
%23 = load double*, double** %7
%24 = load i64, i64* %12
%25 = getelementptr inbounds double, double* %23, i64 %24
%26 = load double, double* %25
%27 = load double*, double** %8
%28 = load i64, i64* %12
%29 = getelementptr inbounds double, double* %27, i64 %28
%30 = load double, double* %29
%31 = fsub double %26, %30
%32 = load double*, double** %6
%33 = load i64, i64* %12
%34 = getelementptr inbounds double, double* %32, i64 %33
store double %31, double* %34
br label %35
35: ; preds = %22
%36 = load i64, i64* %12
%37 = add nsw i64 %36, 1
store i64 %37, i64* %12
br label %18
38: ; preds = %18
br label %39
39: ; preds = %116, %38
%40 = load i64, i64* %12
%41 = load i64, i64* %10
%42 = icmp slt i64 %40, %41
br i1 %42, label %43, label %119
43: ; preds = %39
%44 = load double*, double** %7
%45 = load i64, i64* %12
%46 = getelementptr inbounds double, double* %44, i64 %45
%47 = load double, double* %46
%48 = load double*, double** %8
%49 = load i64, i64* %12
%50 = getelementptr inbounds double, double* %48, i64 %49
%51 = load double, double* %50
%52 = fsub double %47, %51
%53 = load double*, double** %6
%54 = load i64, i64* %12
%55 = getelementptr inbounds double, double* %53, i64 %54
store double %52, double* %55
%56 = load double*, double** %7
%57 = load i64, i64* %12
%58 = add nsw i64 %57, 1
%59 = getelementptr inbounds double, double* %56, i64 %58
%60 = load double, double* %59
%61 = load double*, double** %8
%62 = load i64, i64* %12
%63 = add nsw i64 %62, 1
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
%66 = fsub double %60, %65
%67 = load double*, double** %6
%68 = load i64, i64* %12
%69 = add nsw i64 %68, 1
%70 = getelementptr inbounds double, double* %67, i64 %69
store double %66, double* %70
%71 = load double*, double** %7
%72 = load i64, i64* %12
%73 = add nsw i64 %72, 2
%74 = getelementptr inbounds double, double* %71, i64 %73
%75 = load double, double* %74
%76 = load double*, double** %8
%77 = load i64, i64* %12
%78 = add nsw i64 %77, 2
%79 = getelementptr inbounds double, double* %76, i64 %78
%80 = load double, double* %79
%81 = fsub double %75, %80
%82 = load double*, double** %6
%83 = load i64, i64* %12
%84 = add nsw i64 %83, 2
%85 = getelementptr inbounds double, double* %82, i64 %84
store double %81, double* %85
%86 = load double*, double** %7
%87 = load i64, i64* %12
%88 = add nsw i64 %87, 3
%89 = getelementptr inbounds double, double* %86, i64 %88
%90 = load double, double* %89
%91 = load double*, double** %8
%92 = load i64, i64* %12
%93 = add nsw i64 %92, 3
%94 = getelementptr inbounds double, double* %91, i64 %93
%95 = load double, double* %94
%96 = fsub double %90, %95
%97 = load double*, double** %6
%98 = load i64, i64* %12
%99 = add nsw i64 %98, 3
%100 = getelementptr inbounds double, double* %97, i64 %99
store double %96, double* %100
%101 = load double*, double** %7
%102 = load i64, i64* %12
%103 = add nsw i64 %102, 4
%104 = getelementptr inbounds double, double* %101, i64 %103
%105 = load double, double* %104
%106 = load double*, double** %8
%107 = load i64, i64* %12
%108 = add nsw i64 %107, 4
%109 = getelementptr inbounds double, double* %106, i64 %108
%110 = load double, double* %109
%111 = fsub double %105, %110
%112 = load double*, double** %6
%113 = load i64, i64* %12
%114 = add nsw i64 %113, 4
%115 = getelementptr inbounds double, double* %112, i64 %114
store double %111, double* %115
br label %116
116: ; preds = %43
%117 = load i64, i64* %12
%118 = add nsw i64 %117, 5
store i64 %118, i64* %12
br label %39
119: ; preds = %39
br label %229
120: ; preds = %5
store i64 0, i64* %12
br label %121
121: ; preds = %139, %120
%122 = load i64, i64* %12
%123 = load i64, i64* %11
%124 = icmp slt i64 %122, %123
br i1 %124, label %125, label %142
125: ; preds = %121
%126 = load double*, double** %7
%127 = load i64, i64* %12
%128 = getelementptr inbounds double, double* %126, i64 %127
%129 = load double, double* %128
%130 = load double, double* %9
%131 = load double*, double** %8
%132 = load i64, i64* %12
%133 = getelementptr inbounds double, double* %131, i64 %132
%134 = load double, double* %133
%135 = call double @llvm.fmuladd.f64(double %130, double %134, double %129)
%136 = load double*, double** %6
%137 = load i64, i64* %12
%138 = getelementptr inbounds double, double* %136, i64 %137
store double %135, double* %138
br label %139
139: ; preds = %125
%140 = load i64, i64* %12
%141 = add nsw i64 %140, 1
store i64 %141, i64* %12
br label %121
142: ; preds = %121
br label %143
143: ; preds = %225, %142
%144 = load i64, i64* %12
%145 = load i64, i64* %10
%146 = icmp slt i64 %144, %145
br i1 %146, label %147, label %228
147: ; preds = %143
%148 = load double*, double** %7
%149 = load i64, i64* %12
%150 = getelementptr inbounds double, double* %148, i64 %149
%151 = load double, double* %150
%152 = load double, double* %9
%153 = load double*, double** %8
%154 = load i64, i64* %12
%155 = getelementptr inbounds double, double* %153, i64 %154
%156 = load double, double* %155
%157 = call double @llvm.fmuladd.f64(double %152, double %156, double %151)
%158 = load double*, double** %6
%159 = load i64, i64* %12
%160 = getelementptr inbounds double, double* %158, i64 %159
store double %157, double* %160
%161 = load double*, double** %7
%162 = load i64, i64* %12
%163 = add nsw i64 %162, 1
%164 = getelementptr inbounds double, double* %161, i64 %163
%165 = load double, double* %164
%166 = load double, double* %9
%167 = load double*, double** %8
%168 = load i64, i64* %12
%169 = add nsw i64 %168, 1
%170 = getelementptr inbounds double, double* %167, i64 %169
%171 = load double, double* %170
%172 = call double @llvm.fmuladd.f64(double %166, double %171, double %165)
%173 = load double*, double** %6
%174 = load i64, i64* %12
%175 = add nsw i64 %174, 1
%176 = getelementptr inbounds double, double* %173, i64 %175
store double %172, double* %176
%177 = load double*, double** %7
%178 = load i64, i64* %12
%179 = add nsw i64 %178, 2
%180 = getelementptr inbounds double, double* %177, i64 %179
%181 = load double, double* %180
%182 = load double, double* %9
%183 = load double*, double** %8
%184 = load i64, i64* %12
%185 = add nsw i64 %184, 2
%186 = getelementptr inbounds double, double* %183, i64 %185
%187 = load double, double* %186
%188 = call double @llvm.fmuladd.f64(double %182, double %187, double %181)
%189 = load double*, double** %6
%190 = load i64, i64* %12
%191 = add nsw i64 %190, 2
%192 = getelementptr inbounds double, double* %189, i64 %191
store double %188, double* %192
%193 = load double*, double** %7
%194 = load i64, i64* %12
%195 = add nsw i64 %194, 3
%196 = getelementptr inbounds double, double* %193, i64 %195
%197 = load double, double* %196
%198 = load double, double* %9
%199 = load double*, double** %8
%200 = load i64, i64* %12
%201 = add nsw i64 %200, 3
%202 = getelementptr inbounds double, double* %199, i64 %201
%203 = load double, double* %202
%204 = call double @llvm.fmuladd.f64(double %198, double %203, double %197)
%205 = load double*, double** %6
%206 = load i64, i64* %12
%207 = add nsw i64 %206, 3
%208 = getelementptr inbounds double, double* %205, i64 %207
store double %204, double* %208
%209 = load double*, double** %7
%210 = load i64, i64* %12
%211 = add nsw i64 %210, 4
%212 = getelementptr inbounds double, double* %209, i64 %211
%213 = load double, double* %212
%214 = load double, double* %9
%215 = load double*, double** %8
%216 = load i64, i64* %12
%217 = add nsw i64 %216, 4
%218 = getelementptr inbounds double, double* %215, i64 %217
%219 = load double, double* %218
%220 = call double @llvm.fmuladd.f64(double %214, double %219, double %213)
%221 = load double*, double** %6
%222 = load i64, i64* %12
%223 = add nsw i64 %222, 4
%224 = getelementptr inbounds double, double* %221, i64 %223
store double %220, double* %224
br label %225
225: ; preds = %147
%226 = load i64, i64* %12
%227 = add nsw i64 %226, 5
store i64 %227, i64* %12
br label %143
228: ; preds = %143
br label %229
229: ; preds = %228, %119
ret void
}

LLVM IR (-O2):
define void @cg_step(double* nocapture writeonly %0, double* nocapture %1, double* nocapture %2, double %3, i64 %4) {
%6 = srem i64 %4, 5
%7 = fcmp oeq double %3, -1.000000e+00
%8 = icmp sgt i64 %6, 0
br i1 %7, label %10, label %9
9: ; preds = %5
br i1 %8, label %226, label %100
10: ; preds = %5
br i1 %8, label %14, label %11
11: ; preds = %14, %19, %27, %35, %43, %10
%12 = phi i64 [ 0, %10 ], [ %6, %43 ], [ %6, %35 ], [ %6, %27 ], [ %6, %19 ], [ %6, %14 ]
%13 = icmp slt i64 %12, %4
br i1 %13, label %62, label %312
14: ; preds = %10
%15 = load double, double* %1
%16 = load double, double* %2
%17 = fsub double %15, %16
store double %17, double* %0
%18 = icmp eq i64 %6, 1
br i1 %18, label %11, label %19
19: ; preds = %14
%20 = getelementptr inbounds double, double* %1, i64 1
%21 = load double, double* %20
%22 = getelementptr inbounds double, double* %2, i64 1
%23 = load double, double* %22
%24 = fsub double %21, %23
%25 = getelementptr inbounds double, double* %0, i64 1
store double %24, double* %25
%26 = icmp eq i64 %6, 2
br i1 %26, label %11, label %27
27: ; preds = %19
%28 = getelementptr inbounds double, double* %1, i64 2
%29 = load double, double* %28
%30 = getelementptr inbounds double, double* %2, i64 2
%31 = load double, double* %30
%32 = fsub double %29, %31
%33 = getelementptr inbounds double, double* %0, i64 2
store double %32, double* %33
%34 = icmp eq i64 %6, 3
br i1 %34, label %11, label %35
35: ; preds = %27
%36 = getelementptr inbounds double, double* %1, i64 3
%37 = load double, double* %36
%38 = getelementptr inbounds double, double* %2, i64 3
%39 = load double, double* %38
%40 = fsub double %37, %39
%41 = getelementptr inbounds double, double* %0, i64 3
store double %40, double* %41
%42 = icmp eq i64 %6, 4
br i1 %42, label %11, label %43
43: ; preds = %35
%44 = getelementptr inbounds double, double* %1, i64 4
%45 = load double, double* %44
%46 = getelementptr inbounds double, double* %2, i64 4
%47 = load double, double* %46
%48 = fsub double %45, %47
%49 = getelementptr inbounds double, double* %0, i64 4
store double %48, double* %49
%50 = getelementptr inbounds double, double* %1, i64 5
%51 = load double, double* %50
%52 = getelementptr inbounds double, double* %2, i64 5
%53 = load double, double* %52
%54 = fsub double %51, %53
%55 = getelementptr inbounds double, double* %0, i64 5
store double %54, double* %55
%56 = getelementptr inbounds double, double* %1, i64 6
%57 = load double, double* %56
%58 = getelementptr inbounds double, double* %2, i64 6
%59 = load double, double* %58
%60 = fsub double %57, %59
%61 = getelementptr inbounds double, double* %0, i64 6
store double %60, double* %61
br label %11
62: ; preds = %11, %62
%63 = phi i64 [ %98, %62 ], [ %12, %11 ]
%64 = getelementptr inbounds double, double* %1, i64 %63
%65 = load double, double* %64
%66 = getelementptr inbounds double, double* %2, i64 %63
%67 = load double, double* %66
%68 = fsub double %65, %67
%69 = getelementptr inbounds double, double* %0, i64 %63
store double %68, double* %69
%70 = add nuw nsw i64 %63, 1
%71 = getelementptr inbounds double, double* %1, i64 %70
%72 = load double, double* %71
%73 = getelementptr inbounds double, double* %2, i64 %70
%74 = load double, double* %73
%75 = fsub double %72, %74
%76 = getelementptr inbounds double, double* %0, i64 %70
store double %75, double* %76
%77 = add nuw nsw i64 %63, 2
%78 = getelementptr inbounds double, double* %1, i64 %77
%79 = load double, double* %78
%80 = getelementptr inbounds double, double* %2, i64 %77
%81 = load double, double* %80
%82 = fsub double %79, %81
%83 = getelementptr inbounds double, double* %0, i64 %77
store double %82, double* %83
%84 = add nuw nsw i64 %63, 3
%85 = getelementptr inbounds double, double* %1, i64 %84
%86 = load double, double* %85
%87 = getelementptr inbounds double, double* %2, i64 %84
%88 = load double, double* %87
%89 = fsub double %86, %88
%90 = getelementptr inbounds double, double* %0, i64 %84
store double %89, double* %90
%91 = add nuw nsw i64 %63, 4
%92 = getelementptr inbounds double, double* %1, i64 %91
%93 = load double, double* %92
%94 = getelementptr inbounds double, double* %2, i64 %91
%95 = load double, double* %94
%96 = fsub double %93, %95
%97 = getelementptr inbounds double, double* %0, i64 %91
store double %96, double* %97
%98 = add nuw nsw i64 %63, 5
%99 = icmp slt i64 %98, %4
br i1 %99, label %62, label %312
100: ; preds = %226, %231, %239, %247, %255, %9
%101 = phi i64 [ 0, %9 ], [ %6, %255 ], [ %6, %247 ], [ %6, %239 ], [ %6, %231 ], [ %6, %226 ]
%102 = icmp slt i64 %101, %4
br i1 %102, label %103, label %312
103: ; preds = %100
%104 = xor i64 %101, -1
%105 = add i64 %104, %4
%106 = udiv i64 %105, 5
%107 = add nuw nsw i64 %106, 1
%108 = icmp ult i64 %105, 5
br i1 %108, label %224, label %109
109: ; preds = %103
%110 = getelementptr double, double* %0, i64 %101
%111 = xor i64 %101, -1
%112 = add i64 %111, %4
%113 = urem i64 %112, 5
%114 = sub i64 %112, %113
%115 = add i64 %101, %114
%116 = add i64 %115, 5
%117 = getelementptr double, double* %0, i64 %116
%118 = getelementptr double, double* %1, i64 %101
%119 = getelementptr double, double* %1, i64 %116
%120 = getelementptr double, double* %2, i64 %101
%121 = getelementptr double, double* %2, i64 %116
%122 = icmp ult double* %110, %119
%123 = icmp ult double* %118, %117
%124 = and i1 %122, %123
%125 = icmp ult double* %110, %121
%126 = icmp ult double* %120, %117
%127 = and i1 %125, %126
%128 = or i1 %124, %127
br i1 %128, label %224, label %129
129: ; preds = %109
%130 = and i64 %107, 9223372036854775806
%131 = mul i64 %130, 5
%132 = add i64 %101, %131
%133 = insertelement <2 x double> poison, double %3, i64 0
%134 = shufflevector <2 x double> %133, <2 x double> poison, <2 x i32> zeroinitializer
br label %135
135: ; preds = %135, %129
%136 = phi i64 [ 0, %129 ], [ %220, %135 ]
%137 = mul i64 %136, 5
%138 = add i64 %101, %137
%139 = add i64 %138, 5
%140 = getelementptr inbounds double, double* %1, i64 %138
%141 = getelementptr inbounds double, double* %1, i64 %139
%142 = load double, double* %140
%143 = load double, double* %141
%144 = insertelement <2 x double> poison, double %142, i64 0
%145 = insertelement <2 x double> %144, double %143, i64 1
%146 = getelementptr inbounds double, double* %2, i64 %138
%147 = getelementptr inbounds double, double* %2, i64 %139
%148 = load double, double* %146
%149 = load double, double* %147
%150 = insertelement <2 x double> poison, double %148, i64 0
%151 = insertelement <2 x double> %150, double %149, i64 1
%152 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %134, <2 x double> %151, <2 x double> %145)
%153 = add nuw nsw i64 %138, 1
%154 = add i64 %138, 6
%155 = getelementptr inbounds double, double* %1, i64 %153
%156 = getelementptr inbounds double, double* %1, i64 %154
%157 = load double, double* %155
%158 = load double, double* %156
%159 = insertelement <2 x double> poison, double %157, i64 0
%160 = insertelement <2 x double> %159, double %158, i64 1
%161 = getelementptr inbounds double, double* %2, i64 %153
%162 = getelementptr inbounds double, double* %2, i64 %154
%163 = load double, double* %161
%164 = load double, double* %162
%165 = insertelement <2 x double> poison, double %163, i64 0
%166 = insertelement <2 x double> %165, double %164, i64 1
%167 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %134, <2 x double> %166, <2 x double> %160)
%168 = add nuw nsw i64 %138, 2
%169 = add i64 %138, 7
%170 = getelementptr inbounds double, double* %1, i64 %168
%171 = getelementptr inbounds double, double* %1, i64 %169
%172 = load double, double* %170
%173 = load double, double* %171
%174 = insertelement <2 x double> poison, double %172, i64 0
%175 = insertelement <2 x double> %174, double %173, i64 1
%176 = getelementptr inbounds double, double* %2, i64 %168
%177 = getelementptr inbounds double, double* %2, i64 %169
%178 = load double, double* %176
%179 = load double, double* %177
%180 = insertelement <2 x double> poison, double %178, i64 0
%181 = insertelement <2 x double> %180, double %179, i64 1
%182 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %134, <2 x double> %181, <2 x double> %175)
%183 = add nuw nsw i64 %138, 3
%184 = add i64 %138, 8
%185 = getelementptr inbounds double, double* %1, i64 %183
%186 = getelementptr inbounds double, double* %1, i64 %184
%187 = load double, double* %185
%188 = load double, double* %186
%189 = insertelement <2 x double> poison, double %187, i64 0
%190 = insertelement <2 x double> %189, double %188, i64 1
%191 = getelementptr inbounds double, double* %2, i64 %183
%192 = getelementptr inbounds double, double* %2, i64 %184
%193 = load double, double* %191
%194 = load double, double* %192
%195 = insertelement <2 x double> poison, double %193, i64 0
%196 = insertelement <2 x double> %195, double %194, i64 1
%197 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %134, <2 x double> %196, <2 x double> %190)
%198 = add nuw nsw i64 %138, 4
%199 = add i64 %138, 9
%200 = getelementptr inbounds double, double* %1, i64 %198
%201 = getelementptr inbounds double, double* %1, i64 %199
%202 = load double, double* %200
%203 = load double, double* %201
%204 = insertelement <2 x double> poison, double %202, i64 0
%205 = insertelement <2 x double> %204, double %203, i64 1
%206 = getelementptr inbounds double, double* %2, i64 %198
%207 = getelementptr inbounds double, double* %2, i64 %199
%208 = load double, double* %206
%209 = load double, double* %207
%210 = insertelement <2 x double> poison, double %208, i64 0
%211 = insertelement <2 x double> %210, double %209, i64 1
%212 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %134, <2 x double> %211, <2 x double> %205)
%213 = getelementptr inbounds double, double* %0, i64 %138
%214 = bitcast double* %213 to <10 x double>*
%215 = shufflevector <2 x double> %152, <2 x double> %167, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
%216 = shufflevector <2 x double> %182, <2 x double> %197, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
%217 = shufflevector <4 x double> %215, <4 x double> %216, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
%218 = shufflevector <2 x double> %212, <2 x double> poison, <8 x i32> <i32 0, i32 1, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
%219 = shufflevector <8 x double> %217, <8 x double> %218, <10 x i32> <i32 0, i32 2, i32 4, i32 6, i32 8, i32 1, i32 3, i32 5, i32 7, i32 9>
store <10 x double> %219, <10 x double>* %214
%220 = add nuw i64 %136, 2
%221 = icmp eq i64 %220, %130
br i1 %221, label %222, label %135
222: ; preds = %135
%223 = icmp eq i64 %107, %130
br i1 %223, label %312, label %224
224: ; preds = %109, %103, %222
%225 = phi i64 [ %101, %109 ], [ %101, %103 ], [ %132, %222 ]
br label %274
226: ; preds = %9
%227 = load double, double* %1
%228 = load double, double* %2
%229 = tail call double @llvm.fmuladd.f64(double %3, double %228, double %227)
store double %229, double* %0
%230 = icmp eq i64 %6, 1
br i1 %230, label %100, label %231
231: ; preds = %226
%232 = getelementptr inbounds double, double* %1, i64 1
%233 = load double, double* %232
%234 = getelementptr inbounds double, double* %2, i64 1
%235 = load double, double* %234
%236 = tail call double @llvm.fmuladd.f64(double %3, double %235, double %233)
%237 = getelementptr inbounds double, double* %0, i64 1
store double %236, double* %237
%238 = icmp eq i64 %6, 2
br i1 %238, label %100, label %239
239: ; preds = %231
%240 = getelementptr inbounds double, double* %1, i64 2
%241 = load double, double* %240
%242 = getelementptr inbounds double, double* %2, i64 2
%243 = load double, double* %242
%244 = tail call double @llvm.fmuladd.f64(double %3, double %243, double %241)
%245 = getelementptr inbounds double, double* %0, i64 2
store double %244, double* %245
%246 = icmp eq i64 %6, 3
br i1 %246, label %100, label %247
247: ; preds = %239
%248 = getelementptr inbounds double, double* %1, i64 3
%249 = load double, double* %248
%250 = getelementptr inbounds double, double* %2, i64 3
%251 = load double, double* %250
%252 = tail call double @llvm.fmuladd.f64(double %3, double %251, double %249)
%253 = getelementptr inbounds double, double* %0, i64 3
store double %252, double* %253
%254 = icmp eq i64 %6, 4
br i1 %254, label %100, label %255
255: ; preds = %247
%256 = getelementptr inbounds double, double* %1, i64 4
%257 = load double, double* %256
%258 = getelementptr inbounds double, double* %2, i64 4
%259 = load double, double* %258
%260 = tail call double @llvm.fmuladd.f64(double %3, double %259, double %257)
%261 = getelementptr inbounds double, double* %0, i64 4
store double %260, double* %261
%262 = getelementptr inbounds double, double* %1, i64 5
%263 = load double, double* %262
%264 = getelementptr inbounds double, double* %2, i64 5
%265 = load double, double* %264
%266 = tail call double @llvm.fmuladd.f64(double %3, double %265, double %263)
%267 = getelementptr inbounds double, double* %0, i64 5
store double %266, double* %267
%268 = getelementptr inbounds double, double* %1, i64 6
%269 = load double, double* %268
%270 = getelementptr inbounds double, double* %2, i64 6
%271 = load double, double* %270
%272 = tail call double @llvm.fmuladd.f64(double %3, double %271, double %269)
%273 = getelementptr inbounds double, double* %0, i64 6
store double %272, double* %273
br label %100
274: ; preds = %224, %274
%275 = phi i64 [ %310, %274 ], [ %225, %224 ]
%276 = getelementptr inbounds double, double* %1, i64 %275
%277 = load double, double* %276
%278 = getelementptr inbounds double, double* %2, i64 %275
%279 = load double, double* %278
%280 = tail call double @llvm.fmuladd.f64(double %3, double %279, double %277)
%281 = getelementptr inbounds double, double* %0, i64 %275
store double %280, double* %281
%282 = add nuw nsw i64 %275, 1
%283 = getelementptr inbounds double, double* %1, i64 %282
%284 = load double, double* %283
%285 = getelementptr inbounds double, double* %2, i64 %282
%286 = load double, double* %285
%287 = tail call double @llvm.fmuladd.f64(double %3, double %286, double %284)
%288 = getelementptr inbounds double, double* %0, i64 %282
store double %287, double* %288
%289 = add nuw nsw i64 %275, 2
%290 = getelementptr inbounds double, double* %1, i64 %289
%291 = load double, double* %290
%292 = getelementptr inbounds double, double* %2, i64 %289
%293 = load double, double* %292
%294 = tail call double @llvm.fmuladd.f64(double %3, double %293, double %291)
%295 = getelementptr inbounds double, double* %0, i64 %289
store double %294, double* %295
%296 = add nuw nsw i64 %275, 3
%297 = getelementptr inbounds double, double* %1, i64 %296
%298 = load double, double* %297
%299 = getelementptr inbounds double, double* %2, i64 %296
%300 = load double, double* %299
%301 = tail call double @llvm.fmuladd.f64(double %3, double %300, double %298)
%302 = getelementptr inbounds double, double* %0, i64 %296
store double %301, double* %302
%303 = add nuw nsw i64 %275, 4
%304 = getelementptr inbounds double, double* %1, i64 %303
%305 = load double, double* %304
%306 = getelementptr inbounds double, double* %2, i64 %303
%307 = load double, double* %306
%308 = tail call double @llvm.fmuladd.f64(double %3, double %307, double %305)
%309 = getelementptr inbounds double, double* %0, i64 %303
store double %308, double* %309
%310 = add nuw nsw i64 %275, 5
%311 = icmp slt i64 %310, %4
br i1 %311, label %274, label %312
312: ; preds = %274, %62, %222, %100, %11
ret void
}