void kernel_dtrsv_t_2_lib4_new(int kmax, double *A, int sda, int use_inv_diag_A,
                               double *inv_diag_A, double *x) {
  if (kmax <= 0)
    return;
  const int bs = 4;
  int k;
  double *tA, *tx;
  tA = A;
  tx = x;
  double x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0;
  k = 2;
  if (kmax > 4) {
    x_2 = x[2];
    x_3 = x[3];
    y_0 += A[2 + bs * 0] * x_2;
    y_1 += A[2 + bs * 1] * x_2;
    y_0 += A[3 + bs * 0] * x_3;
    y_1 += A[3 + bs * 1] * x_3;
    k = 4;
    A += 4 + (sda - 1) * bs;
    x += 4;
    for (; k < kmax - 7; k += 8) {
      x_0 = x[0];
      x_1 = x[1];
      x_2 = x[2];
      x_3 = x[3];
      y_0 += A[0 + bs * 0] * x_0;
      y_1 += A[0 + bs * 1] * x_0;
      y_0 += A[1 + bs * 0] * x_1;
      y_1 += A[1 + bs * 1] * x_1;
      y_0 += A[2 + bs * 0] * x_2;
      y_1 += A[2 + bs * 1] * x_2;
      y_0 += A[3 + bs * 0] * x_3;
      y_1 += A[3 + bs * 1] * x_3;
      A += sda * bs;
      x += 4;
      x_0 = x[0];
      x_1 = x[1];
      x_2 = x[2];
      x_3 = x[3];
      y_0 += A[0 + bs * 0] * x_0;
      y_1 += A[0 + bs * 1] * x_0;
      y_0 += A[1 + bs * 0] * x_1;
      y_1 += A[1 + bs * 1] * x_1;
      y_0 += A[2 + bs * 0] * x_2;
      y_1 += A[2 + bs * 1] * x_2;
      y_0 += A[3 + bs * 0] * x_3;
      y_1 += A[3 + bs * 1] * x_3;
      A += sda * bs;
      x += 4;
    }
    for (; k < kmax - 3; k += 4) {
      x_0 = x[0];
      x_1 = x[1];
      x_2 = x[2];
      x_3 = x[3];
      y_0 += A[0 + bs * 0] * x_0;
      y_1 += A[0 + bs * 1] * x_0;
      y_0 += A[1 + bs * 0] * x_1;
      y_1 += A[1 + bs * 1] * x_1;
      y_0 += A[2 + bs * 0] * x_2;
      y_1 += A[2 + bs * 1] * x_2;
      y_0 += A[3 + bs * 0] * x_3;
      y_1 += A[3 + bs * 1] * x_3;
      A += sda * bs;
      x += 4;
    }
  } else {
    A += 2;
    x += 2;
  }
  for (; k < kmax; k++) {
    x_0 = x[0];
    y_0 += A[0 + bs * 0] * x_0;
    y_1 += A[0 + bs * 1] * x_0;
    A += 1;
    x += 1;
  }
  A = tA;
  x = tx;
  if (use_inv_diag_A) {
    y_1 = x[1] - y_1;
    y_1 *= inv_diag_A[1];
    x[1] = y_1;
    y_0 = x[0] - A[1 + bs * 0] * y_1 - y_0;
    y_0 *= inv_diag_A[0];
    x[0] = y_0;
  } else {
    y_1 = x[1] - y_1;
    y_1 /= A[1 + bs * 1];
    x[1] = y_1;
    y_0 = x[0] - A[1 + bs * 0] * y_1 - y_0;
    y_0 /= A[0 + bs * 0];
    x[0] = y_0;
  }
}


x86 assembly (clang, -O0):
<kernel_dtrsv_t_2_lib4_new>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
cmpl   $0x0,-0x4(%rbp)
jg     1128 <kernel_dtrsv_t_2_lib4_new+0x28>
jmp    1869 <kernel_dtrsv_t_2_lib4_new+0x769>
movl   $0x4,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x2,-0x30(%rbp)
cmpl   $0x4,-0x4(%rbp)
jle    1683 <kernel_dtrsv_t_2_lib4_new+0x583>
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x4,-0x30(%rbp)
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x2,%ecx
add    $0x4,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x7,%ecx
cmp    %ecx,%eax
jge    1500 <kernel_dtrsv_t_2_lib4_new+0x400>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x30(%rbp)
jmp    122d <kernel_dtrsv_t_2_lib4_new+0x12d>
jmp    1505 <kernel_dtrsv_t_2_lib4_new+0x405>
mov    -0x30(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    167e <kernel_dtrsv_t_2_lib4_new+0x57e>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x30(%rbp)
jmp    1505 <kernel_dtrsv_t_2_lib4_new+0x405>
jmp    169b <kernel_dtrsv_t_2_lib4_new+0x59b>
mov    -0x10(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
jmp    16a0 <kernel_dtrsv_t_2_lib4_new+0x5a0>
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    171e <kernel_dtrsv_t_2_lib4_new+0x61e>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    16a0 <kernel_dtrsv_t_2_lib4_new+0x5a0>
mov    -0x38(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     17cf <kernel_dtrsv_t_2_lib4_new+0x6cf>
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x70(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1869 <kernel_dtrsv_t_2_lib4_new+0x769>
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm1
movsd  -0x70(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x70(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x68(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrsv_t_2_lib4_new>:
test   %edi,%edi
jle    1484 <kernel_dtrsv_t_2_lib4_new+0x384>
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
cmp    $0x5,%edi
jb     137b <kernel_dtrsv_t_2_lib4_new+0x27b>
movsd  0x10(%rsi),%xmm1
movsd  0x18(%rsi),%xmm2
movhpd 0x30(%rsi),%xmm1
movsd  0x10(%r9),%xmm3
movsd  0x18(%r9),%xmm0
unpcklpd %xmm3,%xmm3
mulpd  %xmm1,%xmm3
xorpd  %xmm1,%xmm1
addpd  %xmm3,%xmm1
movhpd 0x38(%rsi),%xmm2
unpcklpd %xmm0,%xmm0
mulpd  %xmm2,%xmm0
addpd  %xmm1,%xmm0
shl    $0x2,%edx
movslq %edx,%r11
lea    (%rsi,%r11,8),%rbp
lea    0x20(%r9),%rax
mov    $0x4,%r10d
cmp    $0xc,%edi
jb     12b3 <kernel_dtrsv_t_2_lib4_new+0x1b3>
lea    -0x7(%rdi),%r15d
lea    -0xc(%rdi),%r10d
and    $0xfffffff8,%r10d
mov    %r11,%r14
shl    $0x4,%r14
lea    0x0(,%r11,8),%rbx
mov    $0x4,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdx
movsd  0x0(%rbp),%xmm2
movsd  0x8(%rbp),%xmm3
movsd  0x10(%rbp),%xmm4
movhpd 0x20(%rbp),%xmm2
movsd  0x18(%rbp),%xmm8
movsd  (%rax),%xmm6
movsd  0x8(%rax),%xmm7
movsd  0x10(%rax),%xmm5
movsd  0x18(%rax),%xmm1
unpcklpd %xmm6,%xmm6
mulpd  %xmm2,%xmm6
addpd  %xmm0,%xmm6
movhpd 0x28(%rbp),%xmm3
unpcklpd %xmm7,%xmm7
mulpd  %xmm3,%xmm7
addpd  %xmm6,%xmm7
movhpd 0x30(%rbp),%xmm4
unpcklpd %xmm5,%xmm5
mulpd  %xmm4,%xmm5
addpd  %xmm7,%xmm5
movhpd 0x38(%rbp),%xmm8
unpcklpd %xmm1,%xmm1
mulpd  %xmm8,%xmm1
addpd  %xmm5,%xmm1
lea    0x0(%rbp,%rbx,1),%rbp
movsd  (%rdx,%rbx,1),%xmm2
movsd  0x8(%rdx,%rbx,1),%xmm3
movsd  0x10(%rdx,%rbx,1),%xmm4
movsd  0x18(%rdx,%rbx,1),%xmm0
movhpd 0x20(%rdx,%rbx,1),%xmm2
movsd  0x20(%rax),%xmm5
unpcklpd %xmm5,%xmm5
mulpd  %xmm2,%xmm5
addpd  %xmm1,%xmm5
movhpd 0x28(%rdx,%rbx,1),%xmm3
movsd  0x28(%rax),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm3,%xmm2
addpd  %xmm5,%xmm2
movhpd 0x30(%rdx,%rbx,1),%xmm4
movsd  0x30(%rax),%xmm1
unpcklpd %xmm1,%xmm1
mulpd  %xmm4,%xmm1
addpd  %xmm2,%xmm1
movhpd 0x38(%rdx,%rbx,1),%xmm0
movsd  0x38(%rax),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm0,%xmm2
movapd %xmm2,%xmm0
addpd  %xmm1,%xmm0
add    $0x8,%r12d
add    $0x40,%rax
add    %rbx,%rbp
cmp    %r15d,%r12d
jl     11a0 <kernel_dtrsv_t_2_lib4_new+0xa0>
add    %r14,%rdx
addpd  %xmm1,%xmm2
add    $0xc,%r10d
mov    %rdx,%rbp
movapd %xmm2,%xmm0
lea    -0x3(%rdi),%edx
cmp    %edx,%r10d
jge    135e <kernel_dtrsv_t_2_lib4_new+0x25e>
shl    $0x3,%r11
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x0(%rbp),%xmm4
movsd  0x8(%rbp),%xmm5
movsd  0x10(%rbp),%xmm6
movsd  0x18(%rbp),%xmm8
movhpd 0x20(%rbp),%xmm4
movsd  (%rax),%xmm7
movsd  0x8(%rax),%xmm3
movsd  0x10(%rax),%xmm2
movsd  0x18(%rax),%xmm1
unpcklpd %xmm7,%xmm7
mulpd  %xmm4,%xmm7
addpd  %xmm0,%xmm7
movhpd 0x28(%rbp),%xmm5
unpcklpd %xmm3,%xmm3
mulpd  %xmm5,%xmm3
addpd  %xmm7,%xmm3
movhpd 0x30(%rbp),%xmm6
unpcklpd %xmm2,%xmm2
mulpd  %xmm6,%xmm2
movhpd 0x38(%rbp),%xmm8
addpd  %xmm3,%xmm2
unpcklpd %xmm1,%xmm1
mulpd  %xmm8,%xmm1
movapd %xmm1,%xmm0
addpd  %xmm2,%xmm0
add    $0x20,%rax
add    $0x4,%r10d
add    %r11,%rbp
cmp    %edx,%r10d
jl     12d0 <kernel_dtrsv_t_2_lib4_new+0x1d0>
addpd  %xmm2,%xmm1
movapd %xmm1,%xmm0
cmp    %edi,%r10d
jge    1392 <kernel_dtrsv_t_2_lib4_new+0x292>
mov    %edi,%ebx
sub    %r10d,%ebx
mov    %r10d,%edx
not    %edx
test   $0x1,%bl
jne    139b <kernel_dtrsv_t_2_lib4_new+0x29b>
add    %edi,%edx
jne    13c9 <kernel_dtrsv_t_2_lib4_new+0x2c9>
jmp    141b <kernel_dtrsv_t_2_lib4_new+0x31b>
lea    0x10(%rsi),%rbp
lea    0x10(%r9),%rax
xorpd  %xmm0,%xmm0
mov    $0x2,%r10d
cmp    %edi,%r10d
jl     1363 <kernel_dtrsv_t_2_lib4_new+0x263>
movapd %xmm0,%xmm1
jmp    141b <kernel_dtrsv_t_2_lib4_new+0x31b>
movsd  0x0(%rbp),%xmm2
movhpd 0x20(%rbp),%xmm2
movsd  (%rax),%xmm1
unpcklpd %xmm1,%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
add    $0x8,%rbp
add    $0x8,%rax
add    $0x1,%r10d
movapd %xmm1,%xmm0
add    %edi,%edx
je     141b <kernel_dtrsv_t_2_lib4_new+0x31b>
sub    %r10d,%edi
xor    %edx,%edx
xchg   %ax,%ax
movsd  0x0(%rbp,%rdx,8),%xmm3
movsd  0x8(%rbp,%rdx,8),%xmm4
movhpd 0x20(%rbp,%rdx,8),%xmm3
movsd  (%rax,%rdx,8),%xmm2
movsd  0x8(%rax,%rdx,8),%xmm1
unpcklpd %xmm2,%xmm2
mulpd  %xmm3,%xmm2
addpd  %xmm0,%xmm2
movhpd 0x28(%rbp,%rdx,8),%xmm4
unpcklpd %xmm1,%xmm1
mulpd  %xmm4,%xmm1
movapd %xmm1,%xmm0
addpd  %xmm2,%xmm0
add    $0x2,%rdx
cmp    %edx,%edi
jne    13d0 <kernel_dtrsv_t_2_lib4_new+0x2d0>
addpd  %xmm2,%xmm1
movsd  0x8(%r9),%xmm0
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
subsd  %xmm2,%xmm0
test   %ecx,%ecx
je     1456 <kernel_dtrsv_t_2_lib4_new+0x356>
mulsd  0x8(%r8),%xmm0
movsd  %xmm0,0x8(%r9)
movsd  (%r9),%xmm2
mulsd  0x8(%rsi),%xmm0
subsd  %xmm0,%xmm2
subsd  %xmm1,%xmm2
mulsd  (%r8),%xmm2
jmp    1477 <kernel_dtrsv_t_2_lib4_new+0x377>
divsd  0x28(%rsi),%xmm0
movsd  %xmm0,0x8(%r9)
movsd  (%r9),%xmm2
mulsd  0x8(%rsi),%xmm0
subsd  %xmm0,%xmm2
subsd  %xmm1,%xmm2
divsd  (%rsi),%xmm2
movsd  %xmm2,(%r9)
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

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