void kernel_gemver(int n, double alpha, double beta,
                   double A[2000 + 0][2000 + 0], double u1[2000 + 0],
                   double v1[2000 + 0], double u2[2000 + 0],
                   double v2[2000 + 0], double w[2000 + 0], double x[2000 + 0],
                   double y[2000 + 0], double z[2000 + 0]) {
  int i, j;
#pragma scop
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      A[i][j] = A[i][j] + u1[i] * v1[j] + u2[i] * v2[j];
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      x[i] = x[i] + beta * A[j][i] * y[j];
  for (i = 0; i < n; i++)
    x[i] = x[i] + z[i];
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      w[i] = w[i] + alpha * A[i][j] * x[j];
#pragma endscop
}


x86 assembly (clang, -O0):
<kernel_gemver>:
push   %rbp
mov    %rsp,%rbp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11f6 <kernel_gemver+0xf6>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11e3 <kernel_gemver+0xe3>
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    114f <kernel_gemver+0x4f>
jmp    11e8 <kernel_gemver+0xe8>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    113c <kernel_gemver+0x3c>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    128c <kernel_gemver+0x18c>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1279 <kernel_gemver+0x179>
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x18(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1210 <kernel_gemver+0x110>
jmp    127e <kernel_gemver+0x17e>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11fd <kernel_gemver+0xfd>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12d4 <kernel_gemver+0x1d4>
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1293 <kernel_gemver+0x193>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    136a <kernel_gemver+0x26a>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1357 <kernel_gemver+0x257>
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x10(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    12ee <kernel_gemver+0x1ee>
jmp    135c <kernel_gemver+0x25c>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12db <kernel_gemver+0x1db>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_gemver>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rsi,-0x40(%rsp)
test   %edi,%edi
jle    16c8 <kernel_gemver+0x5c8>
mov    0x48(%rsp),%r11
mov    %edi,%esi
lea    (%rcx,%rsi,8),%rax
mov    %rax,-0x10(%rsp)
lea    (%r9,%rsi,8),%rax
mov    %rax,-0x18(%rsp)
lea    -0x1(%rsi),%rax
mov    %rax,-0x30(%rsp)
mov    %esi,%eax
and    $0xfffffffc,%eax
mov    %rax,-0x20(%rsp)
mov    -0x40(%rsp),%rax
lea    0x10(%rax),%r14
lea    0x0(,%rsi,8),%r12
and    $0xffffffffffffffe0,%r12
lea    0x8(%rax),%r13
mov    %rsi,%rax
xor    %ebp,%ebp
mov    %rsi,-0x48(%rsp)
mov    %edi,-0x24(%rsp)
jmp    1190 <kernel_gemver+0x90>
nopl   0x0(%rax)
add    $0x3e80,%r14
add    $0x3e80,%r13
mov    -0x8(%rsp),%rbp
cmp    %rax,%rbp
mov    -0x24(%rsp),%edi
je     137e <kernel_gemver+0x27e>
imul   $0x3e80,%rbp,%rsi
add    -0x40(%rsp),%rsi
lea    0x1(%rbp),%rbx
cmp    $0x4,%edi
mov    %rbx,-0x8(%rsp)
jae    1260 <kernel_gemver+0x160>
xor    %r10d,%r10d
mov    %r10,%r15
test   $0x1,%al
je     11e6 <kernel_gemver+0xe6>
movsd  (%rdx,%rbp,8),%xmm2
mulsd  (%rcx,%r10,8),%xmm2
addsd  (%rsi,%r10,8),%xmm2
movsd  (%r8,%rbp,8),%xmm3
mulsd  (%r9,%r10,8),%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,(%rsi,%r10,8)
mov    %r10,%r15
or     $0x1,%r15
cmp    %r10,-0x30(%rsp)
je     1170 <kernel_gemver+0x70>
nopl   (%rax)
movsd  (%rdx,%rbp,8),%xmm2
mulsd  (%rcx,%r15,8),%xmm2
addsd  -0x8(%r13,%r15,8),%xmm2
movsd  (%r8,%rbp,8),%xmm3
mulsd  (%r9,%r15,8),%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,-0x8(%r13,%r15,8)
movsd  (%rdx,%rbp,8),%xmm2
mulsd  0x8(%rcx,%r15,8),%xmm2
addsd  0x0(%r13,%r15,8),%xmm2
movsd  (%r8,%rbp,8),%xmm3
mulsd  0x8(%r9,%r15,8),%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,0x0(%r13,%r15,8)
add    $0x2,%r15
cmp    %r15,%rax
jne    11f0 <kernel_gemver+0xf0>
jmp    1170 <kernel_gemver+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rsi,%rax,8),%r15
lea    (%r8,%rbx,8),%r10
lea    (%r8,%rbp,8),%rax
mov    %rax,-0x38(%rsp)
lea    (%rdx,%rbx,8),%rax
lea    (%rdx,%rbp,8),%rdi
cmp    %rax,%rsi
setb   %bl
cmp    %r15,%rdi
setb   -0x49(%rsp)
cmp    -0x10(%rsp),%rsi
setb   %al
cmp    %rcx,%r15
seta   -0x4a(%rsp)
cmp    %r10,%rsi
setb   %r10b
cmp    %r15,-0x38(%rsp)
setb   -0x38(%rsp)
cmp    -0x18(%rsp),%rsi
setb   %dil
cmp    %r9,%r15
seta   %r15b
test   %bl,-0x49(%rsp)
jne    1371 <kernel_gemver+0x271>
and    -0x4a(%rsp),%al
jne    1371 <kernel_gemver+0x271>
and    -0x38(%rsp),%r10b
mov    -0x48(%rsp),%rax
jne    11ae <kernel_gemver+0xae>
mov    $0x0,%r10d
and    %r15b,%dil
jne    11b1 <kernel_gemver+0xb1>
movsd  (%rdx,%rbp,8),%xmm2
unpcklpd %xmm2,%xmm2
movsd  (%r8,%rbp,8),%xmm3
unpcklpd %xmm3,%xmm3
xor    %edi,%edi
movupd -0x10(%r14,%rdi,1),%xmm4
movupd (%r14,%rdi,1),%xmm5
movupd (%rcx,%rdi,1),%xmm6
movupd 0x10(%rcx,%rdi,1),%xmm7
mulpd  %xmm2,%xmm6
addpd  %xmm4,%xmm6
mulpd  %xmm2,%xmm7
addpd  %xmm5,%xmm7
movupd (%r9,%rdi,1),%xmm4
movupd 0x10(%r9,%rdi,1),%xmm5
mulpd  %xmm3,%xmm4
addpd  %xmm6,%xmm4
mulpd  %xmm3,%xmm5
addpd  %xmm7,%xmm5
movupd %xmm4,-0x10(%r14,%rdi,1)
movupd %xmm5,(%r14,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r12
jne    1300 <kernel_gemver+0x200>
mov    -0x20(%rsp),%rdi
mov    %rdi,%r10
cmp    %rax,%rdi
je     1170 <kernel_gemver+0x70>
jmp    11b1 <kernel_gemver+0xb1>
xor    %r10d,%r10d
mov    -0x48(%rsp),%rax
jmp    11b1 <kernel_gemver+0xb1>
test   %edi,%edi
mov    0x38(%rsp),%r8
mov    0x40(%rsp),%rbx
jle    16c8 <kernel_gemver+0x5c8>
mov    %eax,%ecx
and    $0xfffffffe,%ecx
xor    %edx,%edx
mov    -0x40(%rsp),%r9
jmp    13b1 <kernel_gemver+0x2b1>
xchg   %ax,%ax
add    $0x1,%rdx
add    $0x8,%r9
cmp    %rax,%rdx
je     1458 <kernel_gemver+0x358>
movsd  (%rbx,%rdx,8),%xmm2
cmpq   $0x0,-0x30(%rsp)
je     1420 <kernel_gemver+0x320>
mov    %r9,%rsi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rsi),%xmm3
mulsd  %xmm1,%xmm3
mulsd  (%r11,%rbp,8),%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,(%rbx,%rdx,8)
movsd  0x3e80(%rsi),%xmm2
mulsd  %xmm1,%xmm2
mulsd  0x8(%r11,%rbp,8),%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rbx,%rdx,8)
add    $0x2,%rbp
add    $0x7d00,%rsi
cmp    %rbp,%rcx
jne    13d0 <kernel_gemver+0x2d0>
test   $0x1,%al
je     13a0 <kernel_gemver+0x2a0>
jmp    142a <kernel_gemver+0x32a>
nopl   0x0(%rax)
xor    %ebp,%ebp
test   $0x1,%al
je     13a0 <kernel_gemver+0x2a0>
imul   $0x3e80,%rbp,%rax
add    -0x40(%rsp),%rax
movsd  (%rax,%rdx,8),%xmm3
mov    -0x48(%rsp),%rax
mulsd  %xmm1,%xmm3
mulsd  (%r11,%rbp,8),%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,(%rbx,%rdx,8)
jmp    13a0 <kernel_gemver+0x2a0>
test   %edi,%edi
jle    16c8 <kernel_gemver+0x5c8>
cmp    $0x4,%edi
jae    1471 <kernel_gemver+0x371>
xor    %ecx,%ecx
mov    0x50(%rsp),%rbp
jmp    1562 <kernel_gemver+0x462>
mov    %rax,%rdx
mov    0x50(%rsp),%rbp
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
cmp    %rbx,%rax
jbe    149c <kernel_gemver+0x39c>
lea    (%rbx,%rdx,8),%rax
cmp    %rbp,%rax
jbe    149c <kernel_gemver+0x39c>
xor    %ecx,%ecx
mov    %rdx,%rax
jmp    1562 <kernel_gemver+0x462>
mov    %edx,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rax
mov    %rax,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rax,%rax
je     1522 <kernel_gemver+0x422>
mov    %rsi,%rax
and    $0xfffffffffffffffe,%rax
xor    %edx,%edx
xchg   %ax,%ax
movupd 0x0(%rbp,%rdx,8),%xmm1
movupd 0x10(%rbp,%rdx,8),%xmm2
movupd (%rbx,%rdx,8),%xmm3
addpd  %xmm1,%xmm3
movupd 0x10(%rbx,%rdx,8),%xmm1
addpd  %xmm2,%xmm1
movupd 0x20(%rbx,%rdx,8),%xmm2
movupd 0x30(%rbx,%rdx,8),%xmm4
movupd %xmm3,(%rbx,%rdx,8)
movupd %xmm1,0x10(%rbx,%rdx,8)
movupd 0x20(%rbp,%rdx,8),%xmm1
addpd  %xmm2,%xmm1
movupd 0x30(%rbp,%rdx,8),%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,0x20(%rbx,%rdx,8)
movupd %xmm2,0x30(%rbx,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rax
jne    14c0 <kernel_gemver+0x3c0>
jmp    1524 <kernel_gemver+0x424>
xor    %edx,%edx
test   $0x1,%sil
mov    -0x48(%rsp),%rax
je     1559 <kernel_gemver+0x459>
movupd (%rbx,%rdx,8),%xmm1
movupd 0x10(%rbx,%rdx,8),%xmm2
movupd 0x0(%rbp,%rdx,8),%xmm3
addpd  %xmm1,%xmm3
movupd 0x10(%rbp,%rdx,8),%xmm1
addpd  %xmm2,%xmm1
movupd %xmm3,(%rbx,%rdx,8)
movupd %xmm1,0x10(%rbx,%rdx,8)
cmp    %rax,%rcx
je     15ef <kernel_gemver+0x4ef>
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     159a <kernel_gemver+0x49a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rbx,%rcx,8),%xmm1
addsd  0x0(%rbp,%rcx,8),%xmm1
movsd  %xmm1,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1580 <kernel_gemver+0x480>
cmp    $0x3,%rdx
jb     15ef <kernel_gemver+0x4ef>
movsd  (%rbx,%rcx,8),%xmm1
addsd  0x0(%rbp,%rcx,8),%xmm1
movsd  0x8(%rbx,%rcx,8),%xmm2
movsd  %xmm1,(%rbx,%rcx,8)
addsd  0x8(%rbp,%rcx,8),%xmm2
movsd  %xmm2,0x8(%rbx,%rcx,8)
movsd  0x10(%rbx,%rcx,8),%xmm1
addsd  0x10(%rbp,%rcx,8),%xmm1
movsd  %xmm1,0x10(%rbx,%rcx,8)
movsd  0x18(%rbx,%rcx,8),%xmm1
addsd  0x18(%rbp,%rcx,8),%xmm1
movsd  %xmm1,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    15a0 <kernel_gemver+0x4a0>
test   %edi,%edi
jle    16c8 <kernel_gemver+0x5c8>
mov    %eax,%ecx
and    $0xfffffffe,%ecx
mov    -0x40(%rsp),%rax
lea    0x8(%rax),%rdx
mov    -0x48(%rsp),%rax
xor    %esi,%esi
jmp    1624 <kernel_gemver+0x524>
xchg   %ax,%ax
add    $0x1,%rsi
add    $0x3e80,%rdx
cmp    %rax,%rsi
je     16c8 <kernel_gemver+0x5c8>
movsd  (%r8,%rsi,8),%xmm1
cmpq   $0x0,-0x30(%rsp)
je     1690 <kernel_gemver+0x590>
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  -0x8(%rdx,%rdi,8),%xmm2
mulsd  %xmm0,%xmm2
mulsd  (%rbx,%rdi,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%r8,%rsi,8)
movsd  (%rdx,%rdi,8),%xmm1
mulsd  %xmm0,%xmm1
mulsd  0x8(%rbx,%rdi,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%r8,%rsi,8)
add    $0x2,%rdi
cmp    %rdi,%rcx
jne    1640 <kernel_gemver+0x540>
test   $0x1,%al
je     1610 <kernel_gemver+0x510>
jmp    169a <kernel_gemver+0x59a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
test   $0x1,%al
je     1610 <kernel_gemver+0x510>
imul   $0x3e80,%rsi,%rax
add    -0x40(%rsp),%rax
movsd  (%rax,%rdi,8),%xmm2
mov    -0x48(%rsp),%rax
mulsd  %xmm0,%xmm2
mulsd  (%rbx,%rdi,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%r8,%rsi,8)
jmp    1610 <kernel_gemver+0x510>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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