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


x86 assembly (clang, -O0):
<cg_daxpy0>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
mov    %rax,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xecd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1274 <cg_daxpy0+0x174>
jp     1274 <cg_daxpy0+0x174>
movq   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    118d <cg_daxpy0+0x8d>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    114b <cg_daxpy0+0x4b>
jmp    1192 <cg_daxpy0+0x92>
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmp    %rcx,%rax
jge    126f <cg_daxpy0+0x16f>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x18(%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x18(%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x20(%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x20(%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x28(%rbp)
jmp    1192 <cg_daxpy0+0x92>
jmp    13db <cg_daxpy0+0x2db>
movq   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    12c7 <cg_daxpy0+0x1c7>
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    127c <cg_daxpy0+0x17c>
jmp    12cc <cg_daxpy0+0x1cc>
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmp    %rcx,%rax
jge    13d6 <cg_daxpy0+0x2d6>
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax,%rcx,8)
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rax,%rcx,8)
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x18(%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x18(%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rax,%rcx,8)
movsd  -0x18(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x20(%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movsd  0x20(%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x28(%rbp)
jmp    12cc <cg_daxpy0+0x1cc>
jmp    13db <cg_daxpy0+0x2db>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cg_daxpy0>:
push   %rbx
movslq %edx,%r10
imul   $0x66666667,%r10,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
lea    (%rax,%rax,4),%ecx
mov    %r10d,%eax
sub    %ecx,%eax
movslq %eax,%rcx
ucomisd 0xed5(%rip),%xmm0
jne    11ce <cg_daxpy0+0xce>
jp     11ce <cg_daxpy0+0xce>
test   %eax,%eax
jle    127e <cg_daxpy0+0x17e>
movsd  (%rdi),%xmm0
subsd  (%rsi),%xmm0
movsd  %xmm0,(%rdi)
cmp    $0x1,%eax
je     12eb <cg_daxpy0+0x1eb>
movsd  0x8(%rdi),%xmm0
subsd  0x8(%rsi),%xmm0
movsd  %xmm0,0x8(%rdi)
cmp    $0x2,%eax
je     12eb <cg_daxpy0+0x1eb>
movsd  0x10(%rdi),%xmm0
subsd  0x10(%rsi),%xmm0
movsd  %xmm0,0x10(%rdi)
cmp    $0x3,%eax
je     12eb <cg_daxpy0+0x1eb>
movsd  0x18(%rdi),%xmm0
subsd  0x18(%rsi),%xmm0
movsd  %xmm0,0x18(%rdi)
cmp    $0x4,%eax
je     12eb <cg_daxpy0+0x1eb>
movsd  0x20(%rdi),%xmm0
movsd  0x28(%rdi),%xmm1
subsd  0x20(%rsi),%xmm0
movsd  %xmm0,0x20(%rdi)
subsd  0x28(%rsi),%xmm1
movsd  %xmm1,0x28(%rdi)
movsd  0x30(%rdi),%xmm0
subsd  0x30(%rsi),%xmm0
movsd  %xmm0,0x30(%rdi)
jmp    12eb <cg_daxpy0+0x1eb>
test   %eax,%eax
jle    12f5 <cg_daxpy0+0x1f5>
movsd  (%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rdi),%xmm1
movsd  %xmm1,(%rdi)
cmp    $0x1,%eax
je     12f7 <cg_daxpy0+0x1f7>
movsd  0x8(%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rdi),%xmm1
movsd  %xmm1,0x8(%rdi)
cmp    $0x2,%eax
je     12f7 <cg_daxpy0+0x1f7>
movsd  0x10(%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x10(%rdi),%xmm1
movsd  %xmm1,0x10(%rdi)
cmp    $0x3,%eax
je     12f7 <cg_daxpy0+0x1f7>
movsd  0x18(%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x18(%rdi),%xmm1
movsd  %xmm1,0x18(%rdi)
cmp    $0x4,%eax
je     12f7 <cg_daxpy0+0x1f7>
movsd  0x20(%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rdi),%xmm1
movsd  %xmm1,0x20(%rdi)
movsd  0x28(%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x28(%rdi),%xmm1
movsd  %xmm1,0x28(%rdi)
movsd  0x30(%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x30(%rdi),%xmm1
movsd  %xmm1,0x30(%rdi)
jmp    12f7 <cg_daxpy0+0x1f7>
xor    %ecx,%ecx
jmp    12eb <cg_daxpy0+0x1eb>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdi,%rcx,8),%xmm0
subsd  (%rsi,%rcx,8),%xmm0
movsd  0x8(%rdi,%rcx,8),%xmm1
movsd  %xmm0,(%rdi,%rcx,8)
subsd  0x8(%rsi,%rcx,8),%xmm1
movsd  %xmm1,0x8(%rdi,%rcx,8)
movsd  0x10(%rdi,%rcx,8),%xmm0
subsd  0x10(%rsi,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rdi,%rcx,8)
movsd  0x18(%rdi,%rcx,8),%xmm0
subsd  0x18(%rsi,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rdi,%rcx,8)
movsd  0x20(%rdi,%rcx,8),%xmm0
subsd  0x20(%rsi,%rcx,8),%xmm0
movsd  %xmm0,0x20(%rdi,%rcx,8)
add    $0x5,%rcx
cmp    %r10,%rcx
jl     1290 <cg_daxpy0+0x190>
jmp    14f4 <cg_daxpy0+0x3f4>
xor    %ecx,%ecx
cmp    %r10,%rcx
jge    14f4 <cg_daxpy0+0x3f4>
mov    %rcx,%r9
not    %r9
add    %r10,%r9
movabs $0xcccccccccccccccd,%r11
cc cc cc
mov    %r9,%rax
mul    %r11
cmp    $0x5,%r9
jae    1327 <cg_daxpy0+0x227>
mov    %rcx,%rax
jmp    1480 <cg_daxpy0+0x380>
mov    %rdx,%r8
lea    (%rdi,%rcx,8),%rbx
mov    %r9,%rax
mul    %r11
shr    $0x2,%rdx
lea    (%rdx,%rdx,4),%rax
add    %rcx,%rax
lea    (%rsi,%rax,8),%rdx
add    $0x28,%rdx
cmp    %rdx,%rbx
jae    1365 <cg_daxpy0+0x265>
lea    (%rdi,%rax,8),%rax
add    $0x28,%rax
lea    (%rsi,%rcx,8),%rdx
cmp    %rax,%rdx
jae    1365 <cg_daxpy0+0x265>
mov    %rcx,%rax
jmp    1480 <cg_daxpy0+0x380>
shr    $0x2,%r8
add    $0x1,%r8
mov    %r8,%r9
and    $0xfffffffffffffffe,%r9
lea    (%r9,%r9,4),%rax
add    %rcx,%rax
movapd %xmm0,%xmm8
unpcklpd %xmm0,%xmm8
shl    $0x3,%rcx
mov    %r9,%rdx
nopl   0x0(%rax)
movsd  (%rsi,%rcx,1),%xmm2
movsd  0x8(%rsi,%rcx,1),%xmm4
movsd  0x10(%rsi,%rcx,1),%xmm3
movsd  0x18(%rsi,%rcx,1),%xmm5
movhpd 0x28(%rsi,%rcx,1),%xmm2
movsd  (%rdi,%rcx,1),%xmm6
movsd  0x8(%rdi,%rcx,1),%xmm7
movsd  0x10(%rdi,%rcx,1),%xmm1
movsd  0x18(%rdi,%rcx,1),%xmm9
movhpd 0x28(%rdi,%rcx,1),%xmm6
mulpd  %xmm8,%xmm2
addpd  %xmm6,%xmm2
movhpd 0x30(%rsi,%rcx,1),%xmm4
movhpd 0x30(%rdi,%rcx,1),%xmm7
mulpd  %xmm8,%xmm4
addpd  %xmm7,%xmm4
movhpd 0x38(%rsi,%rcx,1),%xmm3
movhpd 0x38(%rdi,%rcx,1),%xmm1
mulpd  %xmm8,%xmm3
addpd  %xmm1,%xmm3
movhpd 0x40(%rsi,%rcx,1),%xmm5
movhpd 0x40(%rdi,%rcx,1),%xmm9
mulpd  %xmm8,%xmm5
addpd  %xmm9,%xmm5
movsd  0x20(%rsi,%rcx,1),%xmm1
movhpd 0x48(%rsi,%rcx,1),%xmm1
movsd  0x20(%rdi,%rcx,1),%xmm6
movhpd 0x48(%rdi,%rcx,1),%xmm6
mulpd  %xmm8,%xmm1
addpd  %xmm6,%xmm1
movapd %xmm2,%xmm6
unpcklpd %xmm4,%xmm6
movsd  %xmm1,%xmm2
unpckhpd %xmm3,%xmm4
unpcklpd %xmm5,%xmm3
movhlps %xmm5,%xmm1
movups %xmm1,0x40(%rdi,%rcx,1)
movupd %xmm4,0x30(%rdi,%rcx,1)
movupd %xmm2,0x20(%rdi,%rcx,1)
movupd %xmm3,0x10(%rdi,%rcx,1)
movupd %xmm6,(%rdi,%rcx,1)
add    $0x50,%rcx
add    $0xfffffffffffffffe,%rdx
jne    1390 <cg_daxpy0+0x290>
cmp    %r9,%r8
je     14f4 <cg_daxpy0+0x3f4>
nopl   0x0(%rax)
movsd  (%rsi,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rdi,%rax,8),%xmm1
movsd  %xmm1,(%rdi,%rax,8)
movsd  0x8(%rsi,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rdi,%rax,8),%xmm1
movsd  %xmm1,0x8(%rdi,%rax,8)
movsd  0x10(%rsi,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x10(%rdi,%rax,8),%xmm1
movsd  %xmm1,0x10(%rdi,%rax,8)
movsd  0x18(%rsi,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x18(%rdi,%rax,8),%xmm1
movsd  %xmm1,0x18(%rdi,%rax,8)
movsd  0x20(%rsi,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rdi,%rax,8),%xmm1
movsd  %xmm1,0x20(%rdi,%rax,8)
add    $0x5,%rax
cmp    %r10,%rax
jl     1480 <cg_daxpy0+0x380>
pop    %rbx
ret

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

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