void kernel_dgetrf_nn_2x4_vs_lib4(int km, int kn, int kmax, double *A,
                                  double *B, int sdb, int alg, double *C,
                                  double *D, double *inv_diag_D) {
  const int bs = 4;
  int k;
  double tmp, a_0, a_1, b_0, b_1, b_2, b_3,
      d_00 = 0, d_01 = 0, d_02 = 0, d_03 = 0, d_10 = 0, d_11 = 0, d_12 = 0,
      d_13 = 0;
  if (kmax <= 0)
    goto add;
  for (k = 0; k < kmax - 3; k += 4) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    b_2 = B[0 + bs * 2];
    b_3 = B[0 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    b_0 = B[1 + bs * 0];
    b_1 = B[1 + bs * 1];
    b_2 = B[1 + bs * 2];
    b_3 = B[1 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    b_0 = B[2 + bs * 0];
    b_1 = B[2 + bs * 1];
    b_2 = B[2 + bs * 2];
    b_3 = B[2 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    b_0 = B[3 + bs * 0];
    b_1 = B[3 + bs * 1];
    b_2 = B[3 + bs * 2];
    b_3 = B[3 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    A += 16;
    B += 4 * sdb;
  }
  for (; k < kmax; k++) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    b_2 = B[0 + bs * 2];
    b_3 = B[0 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    A += 4;
    B += 1;
  }
add:
  if (alg != 0) {
    d_00 += C[0 + bs * 0];
    d_10 += C[1 + bs * 0];
    d_01 += C[0 + bs * 1];
    d_11 += C[1 + bs * 1];
    d_02 += C[0 + bs * 2];
    d_12 += C[1 + bs * 2];
    d_03 += C[0 + bs * 3];
    d_13 += C[1 + bs * 3];
  }
  tmp = 1.0 / d_00;
  d_10 *= tmp;
  inv_diag_D[0] = tmp;
  D[0 + bs * 0] = d_00;
  if (km >= 2)
    D[1 + bs * 0] = d_10;
  d_11 -= d_10 * d_01;
  tmp = 1.0 / d_11;
  inv_diag_D[1] = tmp;
  D[0 + bs * 1] = d_01;
  if (km >= 2)
    D[1 + bs * 1] = d_11;
  d_12 -= d_10 * d_02;
  D[0 + bs * 2] = d_02;
  if (km >= 2)
    D[1 + bs * 2] = d_12;
  if (kn < 4)
    return;
  d_13 -= d_10 * d_03;
  D[0 + bs * 3] = d_03;
  if (km >= 2)
    D[1 + bs * 3] = d_13;
  return;
}


x86 assembly (clang, -O0):
<kernel_dgetrf_nn_2x4_vs_lib4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x28,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movl   $0x4,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
cmpl   $0x0,-0xc(%rbp)
jg     1191 <kernel_dgetrf_nn_2x4_vs_lib4+0x91>
jmp    1c47 <kernel_dgetrf_nn_2x4_vs_lib4+0xb47>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1a03 <kernel_dgetrf_nn_2x4_vs_lib4+0x903>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x2c(%rbp)
jmp    1198 <kernel_dgetrf_nn_2x4_vs_lib4+0x98>
jmp    1a08 <kernel_dgetrf_nn_2x4_vs_lib4+0x908>
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1c42 <kernel_dgetrf_nn_2x4_vs_lib4+0xb42>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1a08 <kernel_dgetrf_nn_2x4_vs_lib4+0x908>
jmp    1c47 <kernel_dgetrf_nn_2x4_vs_lib4+0xb47>
cmpl   $0x0,0x10(%rbp)
je     1d06 <kernel_dgetrf_nn_2x4_vs_lib4+0xc06>
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x20(%rax),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x40(%rax),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x18(%rbp),%rax
movsd  0x48(%rax),%xmm0
addsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x60(%rax),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x68(%rax),%xmm0
addsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0x2f2(%rip),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mov    0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x2,-0x4(%rbp)
jl     1d62 <kernel_dgetrf_nn_2x4_vs_lib4+0xc62>
movsd  -0x90(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x78(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0x25a(%rip),%xmm0
divsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x78(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
cmpl   $0x2,-0x4(%rbp)
jl     1dea <kernel_dgetrf_nn_2x4_vs_lib4+0xcea>
movsd  -0x98(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
cmpl   $0x2,-0x4(%rbp)
jl     1e4f <kernel_dgetrf_nn_2x4_vs_lib4+0xd4f>
movsd  -0xa0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
cmpl   $0x4,-0x8(%rbp)
jge    1e5e <kernel_dgetrf_nn_2x4_vs_lib4+0xd5e>
jmp    1ece <kernel_dgetrf_nn_2x4_vs_lib4+0xdce>
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
cmpl   $0x2,-0x4(%rbp)
jl     1ec9 <kernel_dgetrf_nn_2x4_vs_lib4+0xdc9>
movsd  -0xa8(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
jmp    1ece <kernel_dgetrf_nn_2x4_vs_lib4+0xdce>
add    $0x28,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgetrf_nn_2x4_vs_lib4>:
mov    0x8(%rsp),%r10d
test   %edx,%edx
jle    1345 <kernel_dgetrf_nn_2x4_vs_lib4+0x245>
cmp    $0x4,%edx
jb     1371 <kernel_dgetrf_nn_2x4_vs_lib4+0x271>
lea    -0x3(%rdx),%r11d
shl    $0x2,%r9d
movslq %r9d,%r9
shl    $0x3,%r9
xor    %eax,%eax
xorpd  %xmm9,%xmm9
xorpd  %xmm14,%xmm14
xorpd  %xmm15,%xmm15
xorpd  %xmm11,%xmm11
xorpd  %xmm8,%xmm8
xorpd  %xmm10,%xmm10
xorpd  %xmm12,%xmm12
xorpd  %xmm7,%xmm7
xchg   %ax,%ax
movsd  (%rcx),%xmm5
movsd  0x8(%rcx),%xmm2
movsd  0x20(%r8),%xmm1
movsd  0x40(%r8),%xmm4
movsd  0x60(%r8),%xmm13
movsd  (%r8),%xmm6
movsd  0x8(%r8),%xmm0
movapd %xmm5,%xmm3
mulsd  %xmm6,%xmm3
subsd  %xmm3,%xmm7
mulsd  %xmm2,%xmm6
subsd  %xmm6,%xmm11
movapd %xmm5,%xmm3
mulsd  %xmm1,%xmm3
subsd  %xmm3,%xmm12
mulsd  %xmm2,%xmm1
subsd  %xmm1,%xmm15
movapd %xmm5,%xmm1
mulsd  %xmm4,%xmm1
subsd  %xmm1,%xmm10
mulsd  %xmm2,%xmm4
subsd  %xmm4,%xmm14
mulsd  %xmm13,%xmm5
subsd  %xmm5,%xmm8
mulsd  %xmm13,%xmm2
subsd  %xmm2,%xmm9
movsd  0x20(%rcx),%xmm1
movsd  0x28(%rcx),%xmm2
movsd  0x28(%r8),%xmm3
movsd  0x48(%r8),%xmm4
movsd  0x68(%r8),%xmm5
movapd %xmm1,%xmm6
mulsd  %xmm0,%xmm6
subsd  %xmm6,%xmm7
mulsd  %xmm2,%xmm0
subsd  %xmm0,%xmm11
movapd %xmm1,%xmm0
mulsd  %xmm3,%xmm0
subsd  %xmm0,%xmm12
mulsd  %xmm2,%xmm3
subsd  %xmm3,%xmm15
movapd %xmm1,%xmm0
mulsd  %xmm4,%xmm0
subsd  %xmm0,%xmm10
mulsd  %xmm2,%xmm4
subsd  %xmm4,%xmm14
mulsd  %xmm5,%xmm1
subsd  %xmm1,%xmm8
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm9
movsd  0x40(%rcx),%xmm2
movsd  0x48(%rcx),%xmm0
movsd  0x10(%r8),%xmm1
movsd  0x30(%r8),%xmm3
movsd  0x50(%r8),%xmm4
movsd  0x70(%r8),%xmm5
movapd %xmm2,%xmm6
mulsd  %xmm1,%xmm6
subsd  %xmm6,%xmm7
mulsd  %xmm0,%xmm1
subsd  %xmm1,%xmm11
movapd %xmm2,%xmm1
mulsd  %xmm3,%xmm1
subsd  %xmm1,%xmm12
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm15
movapd %xmm2,%xmm1
mulsd  %xmm4,%xmm1
subsd  %xmm1,%xmm10
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm14
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm8
mulsd  %xmm5,%xmm0
subsd  %xmm0,%xmm9
movsd  0x60(%rcx),%xmm2
movsd  0x68(%rcx),%xmm0
movsd  0x18(%r8),%xmm1
movsd  0x38(%r8),%xmm3
movsd  0x58(%r8),%xmm4
movsd  0x78(%r8),%xmm5
movapd %xmm2,%xmm6
mulsd  %xmm1,%xmm6
subsd  %xmm6,%xmm7
mulsd  %xmm0,%xmm1
subsd  %xmm1,%xmm11
movapd %xmm2,%xmm1
mulsd  %xmm3,%xmm1
subsd  %xmm1,%xmm12
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm15
movapd %xmm2,%xmm1
mulsd  %xmm4,%xmm1
subsd  %xmm1,%xmm10
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm14
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm8
mulsd  %xmm5,%xmm0
subsd  %xmm0,%xmm9
sub    $0xffffffffffffff80,%rcx
add    $0x4,%eax
add    %r9,%r8
cmp    %r11d,%eax
jl     1150 <kernel_dgetrf_nn_2x4_vs_lib4+0x50>
mov    %edx,%eax
and    $0xfffffffc,%eax
cmp    %edx,%eax
jl     13a2 <kernel_dgetrf_nn_2x4_vs_lib4+0x2a2>
jmp    1437 <kernel_dgetrf_nn_2x4_vs_lib4+0x337>
xorpd  %xmm7,%xmm7
xorpd  %xmm12,%xmm12
xorpd  %xmm10,%xmm10
xorpd  %xmm8,%xmm8
xorpd  %xmm11,%xmm11
xorpd  %xmm15,%xmm15
xorpd  %xmm14,%xmm14
xorpd  %xmm9,%xmm9
jmp    1437 <kernel_dgetrf_nn_2x4_vs_lib4+0x337>
xorpd  %xmm7,%xmm7
xor    %eax,%eax
xorpd  %xmm12,%xmm12
xorpd  %xmm10,%xmm10
xorpd  %xmm8,%xmm8
xorpd  %xmm11,%xmm11
xorpd  %xmm15,%xmm15
xorpd  %xmm14,%xmm14
xorpd  %xmm9,%xmm9
cmp    %edx,%eax
jge    1437 <kernel_dgetrf_nn_2x4_vs_lib4+0x337>
sub    %eax,%edx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rcx),%xmm2
movsd  0x8(%rcx),%xmm0
movsd  (%r8,%rax,8),%xmm1
movsd  0x20(%r8,%rax,8),%xmm3
movsd  0x40(%r8,%rax,8),%xmm4
movsd  0x60(%r8,%rax,8),%xmm5
movapd %xmm2,%xmm6
mulsd  %xmm1,%xmm6
subsd  %xmm6,%xmm7
mulsd  %xmm0,%xmm1
subsd  %xmm1,%xmm11
movapd %xmm2,%xmm1
mulsd  %xmm3,%xmm1
subsd  %xmm1,%xmm12
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm15
movapd %xmm2,%xmm1
mulsd  %xmm4,%xmm1
subsd  %xmm1,%xmm10
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm14
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm8
mulsd  %xmm5,%xmm0
subsd  %xmm0,%xmm9
add    $0x1,%rax
add    $0x20,%rcx
cmp    %eax,%edx
jne    13b0 <kernel_dgetrf_nn_2x4_vs_lib4+0x2b0>
mov    0x20(%rsp),%rcx
mov    0x18(%rsp),%rax
test   %r10d,%r10d
je     1479 <kernel_dgetrf_nn_2x4_vs_lib4+0x379>
mov    0x10(%rsp),%rdx
addsd  (%rdx),%xmm7
addsd  0x8(%rdx),%xmm11
addsd  0x20(%rdx),%xmm12
addsd  0x28(%rdx),%xmm15
addsd  0x40(%rdx),%xmm10
addsd  0x48(%rdx),%xmm14
addsd  0x60(%rdx),%xmm8
addsd  0x68(%rdx),%xmm9
movsd  0xb7f(%rip),%xmm0
movapd %xmm0,%xmm1
divsd  %xmm7,%xmm1
mulsd  %xmm1,%xmm11
movsd  %xmm1,(%rcx)
movsd  %xmm7,(%rax)
cmp    $0x2,%edi
jl     1506 <kernel_dgetrf_nn_2x4_vs_lib4+0x406>
movsd  %xmm11,0x8(%rax)
movapd %xmm11,%xmm1
mulsd  %xmm12,%xmm1
subsd  %xmm1,%xmm15
divsd  %xmm15,%xmm0
movsd  %xmm0,0x8(%rcx)
movsd  %xmm12,0x20(%rax)
movsd  %xmm15,0x28(%rax)
movsd  %xmm10,0x40(%rax)
mulsd  %xmm11,%xmm10
subsd  %xmm10,%xmm14
movsd  %xmm14,0x48(%rax)
cmp    $0x4,%esi
jl     1536 <kernel_dgetrf_nn_2x4_vs_lib4+0x436>
xorpd  0xb26(%rip),%xmm11
movsd  %xmm8,0x60(%rax)
mulsd  %xmm8,%xmm11
addsd  %xmm9,%xmm11
mov    $0xd,%ecx
movapd %xmm11,%xmm8
jmp    1530 <kernel_dgetrf_nn_2x4_vs_lib4+0x430>
mulsd  %xmm12,%xmm11
subsd  %xmm11,%xmm15
divsd  %xmm15,%xmm0
movsd  %xmm0,0x8(%rcx)
movsd  %xmm12,0x20(%rax)
movsd  %xmm10,0x40(%rax)
mov    $0xc,%ecx
cmp    $0x4,%esi
jl     1536 <kernel_dgetrf_nn_2x4_vs_lib4+0x436>
movsd  %xmm8,(%rax,%rcx,8)
ret

LLVM IR (-O0):
define void @kernel_dgetrf_nn_2x4_vs_lib4(i32 %0, i32 %1, i32 %2, double* %3, double* %4, i32 %5, i32 %6, double* %7, double* %8, double* %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double*
%15 = alloca double*
%16 = alloca i32
%17 = alloca i32
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store double* %3, double** %14
store double* %4, double** %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store double* %7, double** %18
store double* %8, double** %19
store double* %9, double** %20
store i32 4, i32* %21
store double 0.000000e+00, double* %30
store double 0.000000e+00, double* %31
store double 0.000000e+00, double* %32
store double 0.000000e+00, double* %33
store double 0.000000e+00, double* %34
store double 0.000000e+00, double* %35
store double 0.000000e+00, double* %36
store double 0.000000e+00, double* %37
%38 = load i32, i32* %13
%39 = icmp sle i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %10
br label %362
41: ; preds = %10
store i32 0, i32* %22
br label %42
42: ; preds = %287, %41
%43 = load i32, i32* %22
%44 = load i32, i32* %13
%45 = sub nsw i32 %44, 3
%46 = icmp slt i32 %43, %45
br i1 %46, label %47, label %290
47: ; preds = %42
%48 = load double*, double** %14
%49 = getelementptr inbounds double, double* %48, i64 0
%50 = load double, double* %49
store double %50, double* %24
%51 = load double*, double** %14
%52 = getelementptr inbounds double, double* %51, i64 1
%53 = load double, double* %52
store double %53, double* %25
%54 = load double*, double** %15
%55 = getelementptr inbounds double, double* %54, i64 0
%56 = load double, double* %55
store double %56, double* %26
%57 = load double*, double** %15
%58 = getelementptr inbounds double, double* %57, i64 4
%59 = load double, double* %58
store double %59, double* %27
%60 = load double*, double** %15
%61 = getelementptr inbounds double, double* %60, i64 8
%62 = load double, double* %61
store double %62, double* %28
%63 = load double*, double** %15
%64 = getelementptr inbounds double, double* %63, i64 12
%65 = load double, double* %64
store double %65, double* %29
%66 = load double, double* %24
%67 = load double, double* %26
%68 = load double, double* %30
%69 = fneg double %66
%70 = call double @llvm.fmuladd.f64(double %69, double %67, double %68)
store double %70, double* %30
%71 = load double, double* %25
%72 = load double, double* %26
%73 = load double, double* %34
%74 = fneg double %71
%75 = call double @llvm.fmuladd.f64(double %74, double %72, double %73)
store double %75, double* %34
%76 = load double, double* %24
%77 = load double, double* %27
%78 = load double, double* %31
%79 = fneg double %76
%80 = call double @llvm.fmuladd.f64(double %79, double %77, double %78)
store double %80, double* %31
%81 = load double, double* %25
%82 = load double, double* %27
%83 = load double, double* %35
%84 = fneg double %81
%85 = call double @llvm.fmuladd.f64(double %84, double %82, double %83)
store double %85, double* %35
%86 = load double, double* %24
%87 = load double, double* %28
%88 = load double, double* %32
%89 = fneg double %86
%90 = call double @llvm.fmuladd.f64(double %89, double %87, double %88)
store double %90, double* %32
%91 = load double, double* %25
%92 = load double, double* %28
%93 = load double, double* %36
%94 = fneg double %91
%95 = call double @llvm.fmuladd.f64(double %94, double %92, double %93)
store double %95, double* %36
%96 = load double, double* %24
%97 = load double, double* %29
%98 = load double, double* %33
%99 = fneg double %96
%100 = call double @llvm.fmuladd.f64(double %99, double %97, double %98)
store double %100, double* %33
%101 = load double, double* %25
%102 = load double, double* %29
%103 = load double, double* %37
%104 = fneg double %101
%105 = call double @llvm.fmuladd.f64(double %104, double %102, double %103)
store double %105, double* %37
%106 = load double*, double** %14
%107 = getelementptr inbounds double, double* %106, i64 4
%108 = load double, double* %107
store double %108, double* %24
%109 = load double*, double** %14
%110 = getelementptr inbounds double, double* %109, i64 5
%111 = load double, double* %110
store double %111, double* %25
%112 = load double*, double** %15
%113 = getelementptr inbounds double, double* %112, i64 1
%114 = load double, double* %113
store double %114, double* %26
%115 = load double*, double** %15
%116 = getelementptr inbounds double, double* %115, i64 5
%117 = load double, double* %116
store double %117, double* %27
%118 = load double*, double** %15
%119 = getelementptr inbounds double, double* %118, i64 9
%120 = load double, double* %119
store double %120, double* %28
%121 = load double*, double** %15
%122 = getelementptr inbounds double, double* %121, i64 13
%123 = load double, double* %122
store double %123, double* %29
%124 = load double, double* %24
%125 = load double, double* %26
%126 = load double, double* %30
%127 = fneg double %124
%128 = call double @llvm.fmuladd.f64(double %127, double %125, double %126)
store double %128, double* %30
%129 = load double, double* %25
%130 = load double, double* %26
%131 = load double, double* %34
%132 = fneg double %129
%133 = call double @llvm.fmuladd.f64(double %132, double %130, double %131)
store double %133, double* %34
%134 = load double, double* %24
%135 = load double, double* %27
%136 = load double, double* %31
%137 = fneg double %134
%138 = call double @llvm.fmuladd.f64(double %137, double %135, double %136)
store double %138, double* %31
%139 = load double, double* %25
%140 = load double, double* %27
%141 = load double, double* %35
%142 = fneg double %139
%143 = call double @llvm.fmuladd.f64(double %142, double %140, double %141)
store double %143, double* %35
%144 = load double, double* %24
%145 = load double, double* %28
%146 = load double, double* %32
%147 = fneg double %144
%148 = call double @llvm.fmuladd.f64(double %147, double %145, double %146)
store double %148, double* %32
%149 = load double, double* %25
%150 = load double, double* %28
%151 = load double, double* %36
%152 = fneg double %149
%153 = call double @llvm.fmuladd.f64(double %152, double %150, double %151)
store double %153, double* %36
%154 = load double, double* %24
%155 = load double, double* %29
%156 = load double, double* %33
%157 = fneg double %154
%158 = call double @llvm.fmuladd.f64(double %157, double %155, double %156)
store double %158, double* %33
%159 = load double, double* %25
%160 = load double, double* %29
%161 = load double, double* %37
%162 = fneg double %159
%163 = call double @llvm.fmuladd.f64(double %162, double %160, double %161)
store double %163, double* %37
%164 = load double*, double** %14
%165 = getelementptr inbounds double, double* %164, i64 8
%166 = load double, double* %165
store double %166, double* %24
%167 = load double*, double** %14
%168 = getelementptr inbounds double, double* %167, i64 9
%169 = load double, double* %168
store double %169, double* %25
%170 = load double*, double** %15
%171 = getelementptr inbounds double, double* %170, i64 2
%172 = load double, double* %171
store double %172, double* %26
%173 = load double*, double** %15
%174 = getelementptr inbounds double, double* %173, i64 6
%175 = load double, double* %174
store double %175, double* %27
%176 = load double*, double** %15
%177 = getelementptr inbounds double, double* %176, i64 10
%178 = load double, double* %177
store double %178, double* %28
%179 = load double*, double** %15
%180 = getelementptr inbounds double, double* %179, i64 14
%181 = load double, double* %180
store double %181, double* %29
%182 = load double, double* %24
%183 = load double, double* %26
%184 = load double, double* %30
%185 = fneg double %182
%186 = call double @llvm.fmuladd.f64(double %185, double %183, double %184)
store double %186, double* %30
%187 = load double, double* %25
%188 = load double, double* %26
%189 = load double, double* %34
%190 = fneg double %187
%191 = call double @llvm.fmuladd.f64(double %190, double %188, double %189)
store double %191, double* %34
%192 = load double, double* %24
%193 = load double, double* %27
%194 = load double, double* %31
%195 = fneg double %192
%196 = call double @llvm.fmuladd.f64(double %195, double %193, double %194)
store double %196, double* %31
%197 = load double, double* %25
%198 = load double, double* %27
%199 = load double, double* %35
%200 = fneg double %197
%201 = call double @llvm.fmuladd.f64(double %200, double %198, double %199)
store double %201, double* %35
%202 = load double, double* %24
%203 = load double, double* %28
%204 = load double, double* %32
%205 = fneg double %202
%206 = call double @llvm.fmuladd.f64(double %205, double %203, double %204)
store double %206, double* %32
%207 = load double, double* %25
%208 = load double, double* %28
%209 = load double, double* %36
%210 = fneg double %207
%211 = call double @llvm.fmuladd.f64(double %210, double %208, double %209)
store double %211, double* %36
%212 = load double, double* %24
%213 = load double, double* %29
%214 = load double, double* %33
%215 = fneg double %212
%216 = call double @llvm.fmuladd.f64(double %215, double %213, double %214)
store double %216, double* %33
%217 = load double, double* %25
%218 = load double, double* %29
%219 = load double, double* %37
%220 = fneg double %217
%221 = call double @llvm.fmuladd.f64(double %220, double %218, double %219)
store double %221, double* %37
%222 = load double*, double** %14
%223 = getelementptr inbounds double, double* %222, i64 12
%224 = load double, double* %223
store double %224, double* %24
%225 = load double*, double** %14
%226 = getelementptr inbounds double, double* %225, i64 13
%227 = load double, double* %226
store double %227, double* %25
%228 = load double*, double** %15
%229 = getelementptr inbounds double, double* %228, i64 3
%230 = load double, double* %229
store double %230, double* %26
%231 = load double*, double** %15
%232 = getelementptr inbounds double, double* %231, i64 7
%233 = load double, double* %232
store double %233, double* %27
%234 = load double*, double** %15
%235 = getelementptr inbounds double, double* %234, i64 11
%236 = load double, double* %235
store double %236, double* %28
%237 = load double*, double** %15
%238 = getelementptr inbounds double, double* %237, i64 15
%239 = load double, double* %238
store double %239, double* %29
%240 = load double, double* %24
%241 = load double, double* %26
%242 = load double, double* %30
%243 = fneg double %240
%244 = call double @llvm.fmuladd.f64(double %243, double %241, double %242)
store double %244, double* %30
%245 = load double, double* %25
%246 = load double, double* %26
%247 = load double, double* %34
%248 = fneg double %245
%249 = call double @llvm.fmuladd.f64(double %248, double %246, double %247)
store double %249, double* %34
%250 = load double, double* %24
%251 = load double, double* %27
%252 = load double, double* %31
%253 = fneg double %250
%254 = call double @llvm.fmuladd.f64(double %253, double %251, double %252)
store double %254, double* %31
%255 = load double, double* %25
%256 = load double, double* %27
%257 = load double, double* %35
%258 = fneg double %255
%259 = call double @llvm.fmuladd.f64(double %258, double %256, double %257)
store double %259, double* %35
%260 = load double, double* %24
%261 = load double, double* %28
%262 = load double, double* %32
%263 = fneg double %260
%264 = call double @llvm.fmuladd.f64(double %263, double %261, double %262)
store double %264, double* %32
%265 = load double, double* %25
%266 = load double, double* %28
%267 = load double, double* %36
%268 = fneg double %265
%269 = call double @llvm.fmuladd.f64(double %268, double %266, double %267)
store double %269, double* %36
%270 = load double, double* %24
%271 = load double, double* %29
%272 = load double, double* %33
%273 = fneg double %270
%274 = call double @llvm.fmuladd.f64(double %273, double %271, double %272)
store double %274, double* %33
%275 = load double, double* %25
%276 = load double, double* %29
%277 = load double, double* %37
%278 = fneg double %275
%279 = call double @llvm.fmuladd.f64(double %278, double %276, double %277)
store double %279, double* %37
%280 = load double*, double** %14
%281 = getelementptr inbounds double, double* %280, i64 16
store double* %281, double** %14
%282 = load i32, i32* %16
%283 = mul nsw i32 4, %282
%284 = load double*, double** %15
%285 = sext i32 %283 to i64
%286 = getelementptr inbounds double, double* %284, i64 %285
store double* %286, double** %15
br label %287
287: ; preds = %47
%288 = load i32, i32* %22
%289 = add nsw i32 %288, 4
store i32 %289, i32* %22
br label %42
290: ; preds = %42
br label %291
291: ; preds = %358, %290
%292 = load i32, i32* %22
%293 = load i32, i32* %13
%294 = icmp slt i32 %292, %293
br i1 %294, label %295, label %361
295: ; preds = %291
%296 = load double*, double** %14
%297 = getelementptr inbounds double, double* %296, i64 0
%298 = load double, double* %297
store double %298, double* %24
%299 = load double*, double** %14
%300 = getelementptr inbounds double, double* %299, i64 1
%301 = load double, double* %300
store double %301, double* %25
%302 = load double*, double** %15
%303 = getelementptr inbounds double, double* %302, i64 0
%304 = load double, double* %303
store double %304, double* %26
%305 = load double*, double** %15
%306 = getelementptr inbounds double, double* %305, i64 4
%307 = load double, double* %306
store double %307, double* %27
%308 = load double*, double** %15
%309 = getelementptr inbounds double, double* %308, i64 8
%310 = load double, double* %309
store double %310, double* %28
%311 = load double*, double** %15
%312 = getelementptr inbounds double, double* %311, i64 12
%313 = load double, double* %312
store double %313, double* %29
%314 = load double, double* %24
%315 = load double, double* %26
%316 = load double, double* %30
%317 = fneg double %314
%318 = call double @llvm.fmuladd.f64(double %317, double %315, double %316)
store double %318, double* %30
%319 = load double, double* %25
%320 = load double, double* %26
%321 = load double, double* %34
%322 = fneg double %319
%323 = call double @llvm.fmuladd.f64(double %322, double %320, double %321)
store double %323, double* %34
%324 = load double, double* %24
%325 = load double, double* %27
%326 = load double, double* %31
%327 = fneg double %324
%328 = call double @llvm.fmuladd.f64(double %327, double %325, double %326)
store double %328, double* %31
%329 = load double, double* %25
%330 = load double, double* %27
%331 = load double, double* %35
%332 = fneg double %329
%333 = call double @llvm.fmuladd.f64(double %332, double %330, double %331)
store double %333, double* %35
%334 = load double, double* %24
%335 = load double, double* %28
%336 = load double, double* %32
%337 = fneg double %334
%338 = call double @llvm.fmuladd.f64(double %337, double %335, double %336)
store double %338, double* %32
%339 = load double, double* %25
%340 = load double, double* %28
%341 = load double, double* %36
%342 = fneg double %339
%343 = call double @llvm.fmuladd.f64(double %342, double %340, double %341)
store double %343, double* %36
%344 = load double, double* %24
%345 = load double, double* %29
%346 = load double, double* %33
%347 = fneg double %344
%348 = call double @llvm.fmuladd.f64(double %347, double %345, double %346)
store double %348, double* %33
%349 = load double, double* %25
%350 = load double, double* %29
%351 = load double, double* %37
%352 = fneg double %349
%353 = call double @llvm.fmuladd.f64(double %352, double %350, double %351)
store double %353, double* %37
%354 = load double*, double** %14
%355 = getelementptr inbounds double, double* %354, i64 4
store double* %355, double** %14
%356 = load double*, double** %15
%357 = getelementptr inbounds double, double* %356, i64 1
store double* %357, double** %15
br label %358
358: ; preds = %295
%359 = load i32, i32* %22
%360 = add nsw i32 %359, 1
store i32 %360, i32* %22
br label %291
361: ; preds = %291
br label %362
362: ; preds = %361, %40
%363 = load i32, i32* %17
%364 = icmp ne i32 %363, 0
br i1 %364, label %365, label %406
365: ; preds = %362
%366 = load double*, double** %18
%367 = getelementptr inbounds double, double* %366, i64 0
%368 = load double, double* %367
%369 = load double, double* %30
%370 = fadd double %369, %368
store double %370, double* %30
%371 = load double*, double** %18
%372 = getelementptr inbounds double, double* %371, i64 1
%373 = load double, double* %372
%374 = load double, double* %34
%375 = fadd double %374, %373
store double %375, double* %34
%376 = load double*, double** %18
%377 = getelementptr inbounds double, double* %376, i64 4
%378 = load double, double* %377
%379 = load double, double* %31
%380 = fadd double %379, %378
store double %380, double* %31
%381 = load double*, double** %18
%382 = getelementptr inbounds double, double* %381, i64 5
%383 = load double, double* %382
%384 = load double, double* %35
%385 = fadd double %384, %383
store double %385, double* %35
%386 = load double*, double** %18
%387 = getelementptr inbounds double, double* %386, i64 8
%388 = load double, double* %387
%389 = load double, double* %32
%390 = fadd double %389, %388
store double %390, double* %32
%391 = load double*, double** %18
%392 = getelementptr inbounds double, double* %391, i64 9
%393 = load double, double* %392
%394 = load double, double* %36
%395 = fadd double %394, %393
store double %395, double* %36
%396 = load double*, double** %18
%397 = getelementptr inbounds double, double* %396, i64 12
%398 = load double, double* %397
%399 = load double, double* %33
%400 = fadd double %399, %398
store double %400, double* %33
%401 = load double*, double** %18
%402 = getelementptr inbounds double, double* %401, i64 13
%403 = load double, double* %402
%404 = load double, double* %37
%405 = fadd double %404, %403
store double %405, double* %37
br label %406
406: ; preds = %365, %362
%407 = load double, double* %30
%408 = fdiv double 1.000000e+00, %407
store double %408, double* %23
%409 = load double, double* %23
%410 = load double, double* %34
%411 = fmul double %410, %409
store double %411, double* %34
%412 = load double, double* %23
%413 = load double*, double** %20
%414 = getelementptr inbounds double, double* %413, i64 0
store double %412, double* %414
%415 = load double, double* %30
%416 = load double*, double** %19
%417 = getelementptr inbounds double, double* %416, i64 0
store double %415, double* %417
%418 = load i32, i32* %11
%419 = icmp sge i32 %418, 2
br i1 %419, label %420, label %424
420: ; preds = %406
%421 = load double, double* %34
%422 = load double*, double** %19
%423 = getelementptr inbounds double, double* %422, i64 1
store double %421, double* %423
br label %424
424: ; preds = %420, %406
%425 = load double, double* %34
%426 = load double, double* %31
%427 = load double, double* %35
%428 = fneg double %425
%429 = call double @llvm.fmuladd.f64(double %428, double %426, double %427)
store double %429, double* %35
%430 = load double, double* %35
%431 = fdiv double 1.000000e+00, %430
store double %431, double* %23
%432 = load double, double* %23
%433 = load double*, double** %20
%434 = getelementptr inbounds double, double* %433, i64 1
store double %432, double* %434
%435 = load double, double* %31
%436 = load double*, double** %19
%437 = getelementptr inbounds double, double* %436, i64 4
store double %435, double* %437
%438 = load i32, i32* %11
%439 = icmp sge i32 %438, 2
br i1 %439, label %440, label %444
440: ; preds = %424
%441 = load double, double* %35
%442 = load double*, double** %19
%443 = getelementptr inbounds double, double* %442, i64 5
store double %441, double* %443
br label %444
444: ; preds = %440, %424
%445 = load double, double* %34
%446 = load double, double* %32
%447 = load double, double* %36
%448 = fneg double %445
%449 = call double @llvm.fmuladd.f64(double %448, double %446, double %447)
store double %449, double* %36
%450 = load double, double* %32
%451 = load double*, double** %19
%452 = getelementptr inbounds double, double* %451, i64 8
store double %450, double* %452
%453 = load i32, i32* %11
%454 = icmp sge i32 %453, 2
br i1 %454, label %455, label %459
455: ; preds = %444
%456 = load double, double* %36
%457 = load double*, double** %19
%458 = getelementptr inbounds double, double* %457, i64 9
store double %456, double* %458
br label %459
459: ; preds = %455, %444
%460 = load i32, i32* %12
%461 = icmp slt i32 %460, 4
br i1 %461, label %462, label %463
462: ; preds = %459
br label %479
463: ; preds = %459
%464 = load double, double* %34
%465 = load double, double* %33
%466 = load double, double* %37
%467 = fneg double %464
%468 = call double @llvm.fmuladd.f64(double %467, double %465, double %466)
store double %468, double* %37
%469 = load double, double* %33
%470 = load double*, double** %19
%471 = getelementptr inbounds double, double* %470, i64 12
store double %469, double* %471
%472 = load i32, i32* %11
%473 = icmp sge i32 %472, 2
br i1 %473, label %474, label %478
474: ; preds = %463
%475 = load double, double* %37
%476 = load double*, double** %19
%477 = getelementptr inbounds double, double* %476, i64 13
store double %475, double* %477
br label %478
478: ; preds = %474, %463
br label %479
479: ; preds = %478, %462
ret void
}

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