void kernel_dgetrf_nn_4x2_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, a_2, a_3, b_0, b_1,
      d_00 = 0, d_01 = 0, d_10 = 0, d_11 = 0, d_20 = 0, d_21 = 0, d_30 = 0,
      d_31 = 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];
    a_2 = A[2 + bs * 0];
    a_3 = A[3 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    a_2 = A[2 + bs * 1];
    a_3 = A[3 + bs * 1];
    b_0 = B[1 + bs * 0];
    b_1 = B[1 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    a_2 = A[2 + bs * 2];
    a_3 = A[3 + bs * 2];
    b_0 = B[2 + bs * 0];
    b_1 = B[2 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    a_2 = A[2 + bs * 3];
    a_3 = A[3 + bs * 3];
    b_0 = B[3 + bs * 0];
    b_1 = B[3 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    A += 16;
    B += 4 * sdb;
  }
  for (; k < kmax; k++) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    a_2 = A[2 + bs * 0];
    a_3 = A[3 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    A += 4;
    B += 1;
  }
add:
  if (alg != 0) {
    d_00 += C[0 + bs * 0];
    d_10 += C[1 + bs * 0];
    d_20 += C[2 + bs * 0];
    d_30 += C[3 + bs * 0];
    d_01 += C[0 + bs * 1];
    d_11 += C[1 + bs * 1];
    d_21 += C[2 + bs * 1];
    d_31 += C[3 + bs * 1];
  }
  tmp = 1.0 / d_00;
  d_10 *= tmp;
  d_20 *= tmp;
  d_30 *= tmp;
  inv_diag_D[0] = tmp;
  D[0 + bs * 0] = d_00;
  D[1 + bs * 0] = d_10;
  D[2 + bs * 0] = d_20;
  if (km >= 4)
    D[3 + bs * 0] = d_30;
  if (kn < 2)
    return;
  d_11 -= d_10 * d_01;
  d_21 -= d_20 * d_01;
  d_31 -= d_30 * d_01;
  tmp = 1.0 / d_11;
  d_21 *= tmp;
  d_31 *= tmp;
  inv_diag_D[1] = tmp;
  D[0 + bs * 1] = d_01;
  D[1 + bs * 1] = d_11;
  D[2 + bs * 1] = d_21;
  if (km >= 4)
    D[3 + bs * 1] = d_31;
  return;
}


x86 assembly (clang, -O0):
<kernel_dgetrf_nn_4x2_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_4x2_vs_lib4+0x91>
jmp    1c47 <kernel_dgetrf_nn_4x2_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_4x2_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    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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    -0x18(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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    -0x18(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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_4x2_vs_lib4+0x98>
jmp    1a08 <kernel_dgetrf_nn_4x2_vs_lib4+0x908>
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1c42 <kernel_dgetrf_nn_4x2_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    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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_4x2_vs_lib4+0x908>
jmp    1c47 <kernel_dgetrf_nn_4x2_vs_lib4+0xb47>
cmpl   $0x0,0x10(%rbp)
je     1d06 <kernel_dgetrf_nn_4x2_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  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
addsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%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  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x30(%rax),%xmm0
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x38(%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  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mov    0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x80(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x90(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
cmpl   $0x4,-0x4(%rbp)
jl     1da5 <kernel_dgetrf_nn_4x2_vs_lib4+0xca5>
movsd  -0xa0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
cmpl   $0x2,-0x8(%rbp)
jge    1db4 <kernel_dgetrf_nn_4x2_vs_lib4+0xcb4>
jmp    1f02 <kernel_dgetrf_nn_4x2_vs_lib4+0xe02>
movsd  -0x80(%rbp),%xmm0
movsd  -0x78(%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  -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  -0xa0(%rbp),%xmm0
ff
movsd  -0x78(%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
movsd  0x193(%rip),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mov    0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x78(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x98(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
cmpl   $0x4,-0x4(%rbp)
jl     1efd <kernel_dgetrf_nn_4x2_vs_lib4+0xdfd>
movsd  -0xa8(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
jmp    1f02 <kernel_dgetrf_nn_4x2_vs_lib4+0xe02>
add    $0x28,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgetrf_nn_4x2_vs_lib4>:
sub    $0x58,%rsp
mov    0x60(%rsp),%r10d
test   %edx,%edx
jle    149e <kernel_dgetrf_nn_4x2_vs_lib4+0x39e>
cmp    $0x4,%edx
jb     14b6 <kernel_dgetrf_nn_4x2_vs_lib4+0x3b6>
lea    -0x3(%rdx),%r11d
shl    $0x2,%r9d
movslq %r9d,%r9
shl    $0x3,%r9
xorpd  %xmm1,%xmm1
xor    %eax,%eax
xorpd  %xmm5,%xmm5
xorpd  %xmm10,%xmm10
xorpd  %xmm11,%xmm11
nopl   (%rax)
movapd %xmm11,0x10(%rsp)
movapd %xmm10,0x20(%rsp)
movapd %xmm1,0x40(%rsp)
movupd 0x8(%rcx),%xmm7
movq   (%rcx),%xmm0
movdqa 0xe9b(%rip),%xmm2
pxor   %xmm2,%xmm0
movdqa %xmm2,%xmm9
movsd  (%r8),%xmm8
movsd  0x8(%r8),%xmm2
movsd  0x10(%r8),%xmm14
movapd %xmm8,%xmm6
unpcklpd %xmm8,%xmm6
movapd %xmm7,%xmm4
movapd %xmm6,0x30(%rsp)
mulpd  %xmm6,%xmm4
subpd  %xmm4,%xmm1
movsd  0x18(%rcx),%xmm3
pshufd $0x44,%xmm0,%xmm0
movsd  0x20(%r8),%xmm6
unpcklpd %xmm6,%xmm8
unpcklpd %xmm6,%xmm6
mulpd  %xmm8,%xmm0
addpd  %xmm5,%xmm0
movapd %xmm7,-0x50(%rsp)
movapd %xmm7,%xmm4
movapd %xmm6,(%rsp)
mulpd  %xmm6,%xmm4
subpd  %xmm4,%xmm10
movapd %xmm3,-0x20(%rsp)
movapd %xmm3,%xmm4
unpcklpd %xmm3,%xmm4
mulpd  %xmm8,%xmm4
subpd  %xmm4,%xmm11
movupd 0x28(%rcx),%xmm7
movq   0x20(%rcx),%xmm4
pxor   %xmm9,%xmm4
movdqa %xmm9,%xmm12
movapd %xmm2,%xmm6
unpcklpd %xmm2,%xmm6
movapd %xmm7,%xmm5
movapd %xmm6,-0x10(%rsp)
mulpd  %xmm6,%xmm5
subpd  %xmm5,%xmm1
movsd  0x38(%rcx),%xmm3
pshufd $0x44,%xmm4,%xmm4
movsd  0x28(%r8),%xmm9
unpcklpd %xmm9,%xmm2
unpcklpd %xmm9,%xmm9
mulpd  %xmm2,%xmm4
addpd  %xmm0,%xmm4
movapd %xmm7,-0x80(%rsp)
movapd %xmm7,%xmm0
mulpd  %xmm9,%xmm0
subpd  %xmm0,%xmm10
movapd %xmm3,-0x60(%rsp)
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
mulpd  %xmm2,%xmm0
subpd  %xmm0,%xmm11
movapd %xmm14,%xmm6
unpcklpd %xmm14,%xmm6
movupd 0x48(%rcx),%xmm3
movapd %xmm3,%xmm0
mulpd  %xmm6,%xmm0
subpd  %xmm0,%xmm1
movq   0x40(%rcx),%xmm0
pxor   %xmm12,%xmm0
movdqa %xmm12,%xmm5
pshufd $0x44,%xmm0,%xmm12
movsd  0x30(%r8),%xmm13
unpcklpd %xmm13,%xmm14
mulpd  %xmm14,%xmm12
addpd  %xmm4,%xmm12
unpcklpd %xmm13,%xmm13
movapd %xmm3,-0x30(%rsp)
movapd %xmm3,%xmm0
mulpd  %xmm13,%xmm0
subpd  %xmm0,%xmm10
movsd  0x58(%rcx),%xmm0
movapd %xmm0,-0x70(%rsp)
unpcklpd %xmm0,%xmm0
movapd %xmm14,-0x40(%rsp)
mulpd  %xmm14,%xmm0
subpd  %xmm0,%xmm11
movsd  0x18(%r8),%xmm14
movapd %xmm14,%xmm15
unpcklpd %xmm14,%xmm15
movupd 0x68(%rcx),%xmm4
movapd %xmm4,%xmm0
mulpd  %xmm15,%xmm0
subpd  %xmm0,%xmm1
movsd  0x38(%r8),%xmm0
unpcklpd %xmm0,%xmm14
unpcklpd %xmm0,%xmm0
movapd %xmm4,%xmm7
mulpd  %xmm0,%xmm4
subpd  %xmm4,%xmm10
movsd  0x78(%rcx),%xmm4
movapd %xmm4,%xmm3
unpcklpd %xmm4,%xmm4
mulpd  %xmm14,%xmm4
subpd  %xmm4,%xmm11
movq   0x60(%rcx),%xmm4
pxor   %xmm5,%xmm4
pshufd $0x44,%xmm4,%xmm4
mulpd  %xmm14,%xmm4
movapd %xmm4,%xmm5
addpd  %xmm12,%xmm5
sub    $0xffffffffffffff80,%rcx
add    $0x4,%eax
add    %r9,%r8
cmp    %r11d,%eax
jl     1140 <kernel_dgetrf_nn_4x2_vs_lib4+0x40>
movapd 0xc8e(%rip),%xmm1
movapd -0x50(%rsp),%xmm5
xorpd  %xmm1,%xmm5
movapd %xmm5,-0x50(%rsp)
movapd -0x20(%rsp),%xmm10
xorpd  %xmm1,%xmm10
movapd -0x80(%rsp),%xmm5
xorpd  %xmm1,%xmm5
movapd %xmm5,-0x80(%rsp)
movapd -0x60(%rsp),%xmm5
xorpd  %xmm1,%xmm5
movapd %xmm5,-0x60(%rsp)
movapd -0x30(%rsp),%xmm11
xorpd  %xmm1,%xmm11
movapd -0x70(%rsp),%xmm5
xorpd  %xmm1,%xmm5
movapd %xmm5,-0x70(%rsp)
xorpd  %xmm1,%xmm7
xorpd  %xmm1,%xmm3
pshufd $0x44,%xmm10,%xmm1
mulpd  %xmm8,%xmm1
addpd  0x10(%rsp),%xmm1
pshufd $0x44,-0x60(%rsp),%xmm5
mulpd  %xmm2,%xmm5
addpd  %xmm1,%xmm5
pshufd $0x44,-0x70(%rsp),%xmm1
mulpd  -0x40(%rsp),%xmm1
addpd  %xmm5,%xmm1
pshufd $0x44,%xmm3,%xmm10
mulpd  %xmm14,%xmm10
addpd  %xmm1,%xmm10
movapd (%rsp),%xmm1
movapd -0x50(%rsp),%xmm2
mulpd  %xmm2,%xmm1
addpd  0x20(%rsp),%xmm1
movapd -0x80(%rsp),%xmm3
mulpd  %xmm3,%xmm9
addpd  %xmm1,%xmm9
mulpd  %xmm11,%xmm13
addpd  %xmm9,%xmm13
addpd  %xmm12,%xmm4
mulpd  %xmm7,%xmm0
addpd  %xmm13,%xmm0
movapd %xmm2,%xmm1
mulpd  0x30(%rsp),%xmm1
addpd  0x40(%rsp),%xmm1
movapd %xmm1,%xmm2
movapd %xmm3,%xmm1
mulpd  -0x10(%rsp),%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm6,%xmm11
addpd  %xmm1,%xmm11
mulpd  %xmm15,%xmm7
addpd  %xmm11,%xmm7
mov    %edx,%eax
and    $0xfffffffc,%eax
movapd %xmm0,%xmm14
movapd %xmm7,%xmm15
cmp    %edx,%eax
jl     14d3 <kernel_dgetrf_nn_4x2_vs_lib4+0x3d3>
jmp    15b0 <kernel_dgetrf_nn_4x2_vs_lib4+0x4b0>
xorpd  %xmm15,%xmm15
xorpd  %xmm4,%xmm4
xorpd  %xmm14,%xmm14
xorpd  %xmm10,%xmm10
jmp    15b0 <kernel_dgetrf_nn_4x2_vs_lib4+0x4b0>
xorpd  %xmm15,%xmm15
xor    %eax,%eax
xorpd  %xmm4,%xmm4
xorpd  %xmm14,%xmm14
xorpd  %xmm10,%xmm10
cmp    %edx,%eax
jge    15b0 <kernel_dgetrf_nn_4x2_vs_lib4+0x4b0>
sub    %eax,%edx
xor    %eax,%eax
movdqa 0xb20(%rip),%xmm8
movapd %xmm10,%xmm12
movapd %xmm14,%xmm11
movapd %xmm4,%xmm13
movapd %xmm15,%xmm9
movupd 0x8(%rcx),%xmm0
movq   (%rcx),%xmm2
pxor   %xmm8,%xmm2
movsd  (%r8,%rax,8),%xmm1
movsd  0x20(%r8,%rax,8),%xmm7
movapd %xmm1,%xmm3
unpcklpd %xmm1,%xmm3
movapd %xmm0,%xmm4
mulpd  %xmm3,%xmm4
subpd  %xmm4,%xmm15
movsd  0x18(%rcx),%xmm5
pshufd $0x44,%xmm2,%xmm2
unpcklpd %xmm7,%xmm1
unpcklpd %xmm7,%xmm7
mulpd  %xmm1,%xmm2
movapd %xmm2,%xmm4
addpd  %xmm13,%xmm4
movapd %xmm0,%xmm6
mulpd  %xmm7,%xmm6
subpd  %xmm6,%xmm14
movapd %xmm5,%xmm6
unpcklpd %xmm5,%xmm6
mulpd  %xmm1,%xmm6
subpd  %xmm6,%xmm10
add    $0x1,%rax
add    $0x20,%rcx
cmp    %eax,%edx
jne    14e0 <kernel_dgetrf_nn_4x2_vs_lib4+0x3e0>
xorpd  %xmm8,%xmm0
xorpd  %xmm8,%xmm5
pshufd $0x44,%xmm5,%xmm10
mulpd  %xmm1,%xmm10
addpd  %xmm12,%xmm10
addpd  %xmm13,%xmm2
mulpd  %xmm0,%xmm7
addpd  %xmm11,%xmm7
mulpd  %xmm3,%xmm0
addpd  %xmm9,%xmm0
movapd %xmm0,%xmm15
movapd %xmm2,%xmm4
movapd %xmm7,%xmm14
mov    0x78(%rsp),%rcx
mov    0x70(%rsp),%rax
movapd %xmm10,%xmm1
unpckhpd %xmm10,%xmm1
test   %r10d,%r10d
je     1607 <kernel_dgetrf_nn_4x2_vs_lib4+0x507>
mov    0x68(%rsp),%rdx
movupd 0x8(%rdx),%xmm0
addpd  %xmm0,%xmm15
movsd  0x18(%rdx),%xmm0
addsd  %xmm0,%xmm10
movupd 0x20(%rdx),%xmm0
movsd  (%rdx),%xmm2
unpcklpd %xmm0,%xmm2
movsd  0x30(%rdx),%xmm3
shufpd $0x1,%xmm3,%xmm0
addpd  %xmm0,%xmm14
addpd  %xmm2,%xmm4
addsd  0x38(%rdx),%xmm1
movsd  0xa01(%rip),%xmm3
movapd %xmm3,%xmm5
divsd  %xmm4,%xmm5
mulsd  %xmm5,%xmm10
movsd  %xmm5,(%rcx)
unpcklpd %xmm5,%xmm5
mulpd  %xmm15,%xmm5
movlpd %xmm4,(%rax)
movupd %xmm5,0x8(%rax)
cmp    $0x4,%edi
jl     163d <kernel_dgetrf_nn_4x2_vs_lib4+0x53d>
movsd  %xmm10,0x18(%rax)
cmp    $0x2,%esi
jl     16a3 <kernel_dgetrf_nn_4x2_vs_lib4+0x5a3>
movapd %xmm4,%xmm2
unpckhpd %xmm4,%xmm2
movapd %xmm5,%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm14,%xmm6
subsd  %xmm0,%xmm6
unpckhpd %xmm5,%xmm5
unpckhpd %xmm14,%xmm14
mulsd  %xmm2,%xmm5
subsd  %xmm5,%xmm14
divsd  %xmm6,%xmm3
mulsd  %xmm3,%xmm14
movsd  %xmm3,0x8(%rcx)
movhpd %xmm4,0x20(%rax)
movsd  %xmm6,0x28(%rax)
movsd  %xmm14,0x30(%rax)
cmp    $0x4,%edi
jl     16a3 <kernel_dgetrf_nn_4x2_vs_lib4+0x5a3>
mulsd  %xmm2,%xmm10
subsd  %xmm10,%xmm1
mulsd  %xmm1,%xmm3
movsd  %xmm3,0x38(%rax)
add    $0x58,%rsp
ret

LLVM IR (-O0):
define void @kernel_dgetrf_nn_4x2_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** %14
%55 = getelementptr inbounds double, double* %54, i64 2
%56 = load double, double* %55
store double %56, double* %26
%57 = load double*, double** %14
%58 = getelementptr inbounds double, double* %57, i64 3
%59 = load double, double* %58
store double %59, double* %27
%60 = load double*, double** %15
%61 = getelementptr inbounds double, double* %60, i64 0
%62 = load double, double* %61
store double %62, double* %28
%63 = load double*, double** %15
%64 = getelementptr inbounds double, double* %63, i64 4
%65 = load double, double* %64
store double %65, double* %29
%66 = load double, double* %24
%67 = load double, double* %28
%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* %28
%73 = load double, double* %32
%74 = fneg double %71
%75 = call double @llvm.fmuladd.f64(double %74, double %72, double %73)
store double %75, double* %32
%76 = load double, double* %26
%77 = load double, double* %28
%78 = load double, double* %34
%79 = fneg double %76
%80 = call double @llvm.fmuladd.f64(double %79, double %77, double %78)
store double %80, double* %34
%81 = load double, double* %27
%82 = load double, double* %28
%83 = load double, double* %36
%84 = fneg double %81
%85 = call double @llvm.fmuladd.f64(double %84, double %82, double %83)
store double %85, double* %36
%86 = load double, double* %24
%87 = load double, double* %29
%88 = load double, double* %31
%89 = fneg double %86
%90 = call double @llvm.fmuladd.f64(double %89, double %87, double %88)
store double %90, double* %31
%91 = load double, double* %25
%92 = load double, double* %29
%93 = load double, double* %33
%94 = fneg double %91
%95 = call double @llvm.fmuladd.f64(double %94, double %92, double %93)
store double %95, double* %33
%96 = load double, double* %26
%97 = load double, double* %29
%98 = load double, double* %35
%99 = fneg double %96
%100 = call double @llvm.fmuladd.f64(double %99, double %97, double %98)
store double %100, double* %35
%101 = load double, double* %27
%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** %14
%113 = getelementptr inbounds double, double* %112, i64 6
%114 = load double, double* %113
store double %114, double* %26
%115 = load double*, double** %14
%116 = getelementptr inbounds double, double* %115, i64 7
%117 = load double, double* %116
store double %117, double* %27
%118 = load double*, double** %15
%119 = getelementptr inbounds double, double* %118, i64 1
%120 = load double, double* %119
store double %120, double* %28
%121 = load double*, double** %15
%122 = getelementptr inbounds double, double* %121, i64 5
%123 = load double, double* %122
store double %123, double* %29
%124 = load double, double* %24
%125 = load double, double* %28
%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* %28
%131 = load double, double* %32
%132 = fneg double %129
%133 = call double @llvm.fmuladd.f64(double %132, double %130, double %131)
store double %133, double* %32
%134 = load double, double* %26
%135 = load double, double* %28
%136 = load double, double* %34
%137 = fneg double %134
%138 = call double @llvm.fmuladd.f64(double %137, double %135, double %136)
store double %138, double* %34
%139 = load double, double* %27
%140 = load double, double* %28
%141 = load double, double* %36
%142 = fneg double %139
%143 = call double @llvm.fmuladd.f64(double %142, double %140, double %141)
store double %143, double* %36
%144 = load double, double* %24
%145 = load double, double* %29
%146 = load double, double* %31
%147 = fneg double %144
%148 = call double @llvm.fmuladd.f64(double %147, double %145, double %146)
store double %148, double* %31
%149 = load double, double* %25
%150 = load double, double* %29
%151 = load double, double* %33
%152 = fneg double %149
%153 = call double @llvm.fmuladd.f64(double %152, double %150, double %151)
store double %153, double* %33
%154 = load double, double* %26
%155 = load double, double* %29
%156 = load double, double* %35
%157 = fneg double %154
%158 = call double @llvm.fmuladd.f64(double %157, double %155, double %156)
store double %158, double* %35
%159 = load double, double* %27
%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** %14
%171 = getelementptr inbounds double, double* %170, i64 10
%172 = load double, double* %171
store double %172, double* %26
%173 = load double*, double** %14
%174 = getelementptr inbounds double, double* %173, i64 11
%175 = load double, double* %174
store double %175, double* %27
%176 = load double*, double** %15
%177 = getelementptr inbounds double, double* %176, i64 2
%178 = load double, double* %177
store double %178, double* %28
%179 = load double*, double** %15
%180 = getelementptr inbounds double, double* %179, i64 6
%181 = load double, double* %180
store double %181, double* %29
%182 = load double, double* %24
%183 = load double, double* %28
%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* %28
%189 = load double, double* %32
%190 = fneg double %187
%191 = call double @llvm.fmuladd.f64(double %190, double %188, double %189)
store double %191, double* %32
%192 = load double, double* %26
%193 = load double, double* %28
%194 = load double, double* %34
%195 = fneg double %192
%196 = call double @llvm.fmuladd.f64(double %195, double %193, double %194)
store double %196, double* %34
%197 = load double, double* %27
%198 = load double, double* %28
%199 = load double, double* %36
%200 = fneg double %197
%201 = call double @llvm.fmuladd.f64(double %200, double %198, double %199)
store double %201, double* %36
%202 = load double, double* %24
%203 = load double, double* %29
%204 = load double, double* %31
%205 = fneg double %202
%206 = call double @llvm.fmuladd.f64(double %205, double %203, double %204)
store double %206, double* %31
%207 = load double, double* %25
%208 = load double, double* %29
%209 = load double, double* %33
%210 = fneg double %207
%211 = call double @llvm.fmuladd.f64(double %210, double %208, double %209)
store double %211, double* %33
%212 = load double, double* %26
%213 = load double, double* %29
%214 = load double, double* %35
%215 = fneg double %212
%216 = call double @llvm.fmuladd.f64(double %215, double %213, double %214)
store double %216, double* %35
%217 = load double, double* %27
%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** %14
%229 = getelementptr inbounds double, double* %228, i64 14
%230 = load double, double* %229
store double %230, double* %26
%231 = load double*, double** %14
%232 = getelementptr inbounds double, double* %231, i64 15
%233 = load double, double* %232
store double %233, double* %27
%234 = load double*, double** %15
%235 = getelementptr inbounds double, double* %234, i64 3
%236 = load double, double* %235
store double %236, double* %28
%237 = load double*, double** %15
%238 = getelementptr inbounds double, double* %237, i64 7
%239 = load double, double* %238
store double %239, double* %29
%240 = load double, double* %24
%241 = load double, double* %28
%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* %28
%247 = load double, double* %32
%248 = fneg double %245
%249 = call double @llvm.fmuladd.f64(double %248, double %246, double %247)
store double %249, double* %32
%250 = load double, double* %26
%251 = load double, double* %28
%252 = load double, double* %34
%253 = fneg double %250
%254 = call double @llvm.fmuladd.f64(double %253, double %251, double %252)
store double %254, double* %34
%255 = load double, double* %27
%256 = load double, double* %28
%257 = load double, double* %36
%258 = fneg double %255
%259 = call double @llvm.fmuladd.f64(double %258, double %256, double %257)
store double %259, double* %36
%260 = load double, double* %24
%261 = load double, double* %29
%262 = load double, double* %31
%263 = fneg double %260
%264 = call double @llvm.fmuladd.f64(double %263, double %261, double %262)
store double %264, double* %31
%265 = load double, double* %25
%266 = load double, double* %29
%267 = load double, double* %33
%268 = fneg double %265
%269 = call double @llvm.fmuladd.f64(double %268, double %266, double %267)
store double %269, double* %33
%270 = load double, double* %26
%271 = load double, double* %29
%272 = load double, double* %35
%273 = fneg double %270
%274 = call double @llvm.fmuladd.f64(double %273, double %271, double %272)
store double %274, double* %35
%275 = load double, double* %27
%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** %14
%303 = getelementptr inbounds double, double* %302, i64 2
%304 = load double, double* %303
store double %304, double* %26
%305 = load double*, double** %14
%306 = getelementptr inbounds double, double* %305, i64 3
%307 = load double, double* %306
store double %307, double* %27
%308 = load double*, double** %15
%309 = getelementptr inbounds double, double* %308, i64 0
%310 = load double, double* %309
store double %310, double* %28
%311 = load double*, double** %15
%312 = getelementptr inbounds double, double* %311, i64 4
%313 = load double, double* %312
store double %313, double* %29
%314 = load double, double* %24
%315 = load double, double* %28
%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* %28
%321 = load double, double* %32
%322 = fneg double %319
%323 = call double @llvm.fmuladd.f64(double %322, double %320, double %321)
store double %323, double* %32
%324 = load double, double* %26
%325 = load double, double* %28
%326 = load double, double* %34
%327 = fneg double %324
%328 = call double @llvm.fmuladd.f64(double %327, double %325, double %326)
store double %328, double* %34
%329 = load double, double* %27
%330 = load double, double* %28
%331 = load double, double* %36
%332 = fneg double %329
%333 = call double @llvm.fmuladd.f64(double %332, double %330, double %331)
store double %333, double* %36
%334 = load double, double* %24
%335 = load double, double* %29
%336 = load double, double* %31
%337 = fneg double %334
%338 = call double @llvm.fmuladd.f64(double %337, double %335, double %336)
store double %338, double* %31
%339 = load double, double* %25
%340 = load double, double* %29
%341 = load double, double* %33
%342 = fneg double %339
%343 = call double @llvm.fmuladd.f64(double %342, double %340, double %341)
store double %343, double* %33
%344 = load double, double* %26
%345 = load double, double* %29
%346 = load double, double* %35
%347 = fneg double %344
%348 = call double @llvm.fmuladd.f64(double %347, double %345, double %346)
store double %348, double* %35
%349 = load double, double* %27
%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* %32
%375 = fadd double %374, %373
store double %375, double* %32
%376 = load double*, double** %18
%377 = getelementptr inbounds double, double* %376, i64 2
%378 = load double, double* %377
%379 = load double, double* %34
%380 = fadd double %379, %378
store double %380, double* %34
%381 = load double*, double** %18
%382 = getelementptr inbounds double, double* %381, i64 3
%383 = load double, double* %382
%384 = load double, double* %36
%385 = fadd double %384, %383
store double %385, double* %36
%386 = load double*, double** %18
%387 = getelementptr inbounds double, double* %386, i64 4
%388 = load double, double* %387
%389 = load double, double* %31
%390 = fadd double %389, %388
store double %390, double* %31
%391 = load double*, double** %18
%392 = getelementptr inbounds double, double* %391, i64 5
%393 = load double, double* %392
%394 = load double, double* %33
%395 = fadd double %394, %393
store double %395, double* %33
%396 = load double*, double** %18
%397 = getelementptr inbounds double, double* %396, i64 6
%398 = load double, double* %397
%399 = load double, double* %35
%400 = fadd double %399, %398
store double %400, double* %35
%401 = load double*, double** %18
%402 = getelementptr inbounds double, double* %401, i64 7
%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* %32
%411 = fmul double %410, %409
store double %411, double* %32
%412 = load double, double* %23
%413 = load double, double* %34
%414 = fmul double %413, %412
store double %414, double* %34
%415 = load double, double* %23
%416 = load double, double* %36
%417 = fmul double %416, %415
store double %417, double* %36
%418 = load double, double* %23
%419 = load double*, double** %20
%420 = getelementptr inbounds double, double* %419, i64 0
store double %418, double* %420
%421 = load double, double* %30
%422 = load double*, double** %19
%423 = getelementptr inbounds double, double* %422, i64 0
store double %421, double* %423
%424 = load double, double* %32
%425 = load double*, double** %19
%426 = getelementptr inbounds double, double* %425, i64 1
store double %424, double* %426
%427 = load double, double* %34
%428 = load double*, double** %19
%429 = getelementptr inbounds double, double* %428, i64 2
store double %427, double* %429
%430 = load i32, i32* %11
%431 = icmp sge i32 %430, 4
br i1 %431, label %432, label %436
432: ; preds = %406
%433 = load double, double* %36
%434 = load double*, double** %19
%435 = getelementptr inbounds double, double* %434, i64 3
store double %433, double* %435
br label %436
436: ; preds = %432, %406
%437 = load i32, i32* %12
%438 = icmp slt i32 %437, 2
br i1 %438, label %439, label %440
439: ; preds = %436
br label %483
440: ; preds = %436
%441 = load double, double* %32
%442 = load double, double* %31
%443 = load double, double* %33
%444 = fneg double %441
%445 = call double @llvm.fmuladd.f64(double %444, double %442, double %443)
store double %445, double* %33
%446 = load double, double* %34
%447 = load double, double* %31
%448 = load double, double* %35
%449 = fneg double %446
%450 = call double @llvm.fmuladd.f64(double %449, double %447, double %448)
store double %450, double* %35
%451 = load double, double* %36
%452 = load double, double* %31
%453 = load double, double* %37
%454 = fneg double %451
%455 = call double @llvm.fmuladd.f64(double %454, double %452, double %453)
store double %455, double* %37
%456 = load double, double* %33
%457 = fdiv double 1.000000e+00, %456
store double %457, double* %23
%458 = load double, double* %23
%459 = load double, double* %35
%460 = fmul double %459, %458
store double %460, double* %35
%461 = load double, double* %23
%462 = load double, double* %37
%463 = fmul double %462, %461
store double %463, double* %37
%464 = load double, double* %23
%465 = load double*, double** %20
%466 = getelementptr inbounds double, double* %465, i64 1
store double %464, double* %466
%467 = load double, double* %31
%468 = load double*, double** %19
%469 = getelementptr inbounds double, double* %468, i64 4
store double %467, double* %469
%470 = load double, double* %33
%471 = load double*, double** %19
%472 = getelementptr inbounds double, double* %471, i64 5
store double %470, double* %472
%473 = load double, double* %35
%474 = load double*, double** %19
%475 = getelementptr inbounds double, double* %474, i64 6
store double %473, double* %475
%476 = load i32, i32* %11
%477 = icmp sge i32 %476, 4
br i1 %477, label %478, label %482
478: ; preds = %440
%479 = load double, double* %37
%480 = load double*, double** %19
%481 = getelementptr inbounds double, double* %480, i64 7
store double %479, double* %481
br label %482
482: ; preds = %478, %440
br label %483
483: ; preds = %482, %439
ret void
}

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