void kernel_strsv_lt_inv_2_lib4(int kmax, float *A, int sda, float *inv_diag_A,
                                float *x, float *y, float *z) {
  const int bs = 4;
  int k;
  float *tA, *tx;
  tA = A;
  tx = x;
  float 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 - 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;
  }
  y_0 = y[0] + y_0;
  y_1 = y[1] + y_1;
  A = tA;
  x = tx;
  y_1 *= inv_diag_A[1];
  z[1] = y_1;
  y_0 -= A[1 + bs * 0] * y_1;
  y_0 *= inv_diag_A[0];
  z[0] = y_0;
}


x86 assembly (clang, -O0):
<kernel_strsv_lt_inv_2_lib4>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x4,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp)
movl   $0x2,-0x38(%rbp)
cmpl   $0x4,-0x4(%rbp)
jle    143d <kernel_strsv_lt_inv_2_lib4+0x33d>
mov    -0x28(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x28(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  -0x54(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  -0x54(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  -0x58(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  -0x58(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
movl   $0x4,-0x38(%rbp)
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x2,%ecx
add    $0x4,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1438 <kernel_strsv_lt_inv_2_lib4+0x338>
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x28(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x28(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  -0x4c(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  -0x4c(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x14(%rax),%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  -0x54(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  -0x54(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  -0x58(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  -0x58(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x38(%rbp)
jmp    1257 <kernel_strsv_lt_inv_2_lib4+0x157>
jmp    1455 <kernel_strsv_lt_inv_2_lib4+0x355>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
jmp    145a <kernel_strsv_lt_inv_2_lib4+0x35a>
mov    -0x38(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    14f2 <kernel_strsv_lt_inv_2_lib4+0x3f2>
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  -0x4c(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  -0x4c(%rbp),%xmm2
movss  -0x60(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    145a <kernel_strsv_lt_inv_2_lib4+0x35a>
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm0
addss  -0x5c(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x30(%rbp),%rax
movss  0x4(%rax),%xmm0
addss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x60(%rbp),%xmm0
mov    0x10(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  -0x60(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0x5c(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x5c(%rbp),%xmm0
mov    0x10(%rbp),%rax
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_strsv_lt_inv_2_lib4>:
cmp    $0x5,%edi
jl     1255 <kernel_strsv_lt_inv_2_lib4+0x155>
movss  0x8(%rsi),%xmm0
movss  0xc(%rsi),%xmm1
movss  0x18(%rsi),%xmm2
unpcklps %xmm2,%xmm0
movss  0x1c(%rsi),%xmm2
unpcklps %xmm2,%xmm1
movss  0x8(%r8),%xmm2
movss  0xc(%r8),%xmm3
shufps $0x0,%xmm2,%xmm2
mulps  %xmm0,%xmm2
xorps  %xmm0,%xmm0
subps  %xmm2,%xmm0
shufps $0x0,%xmm3,%xmm3
mulps  %xmm1,%xmm3
subps  %xmm3,%xmm0
shl    $0x2,%edx
movslq %edx,%r11
lea    (%rsi,%r11,4),%rax
add    $0x10,%r8
mov    $0x4,%r10d
cmp    $0x8,%edi
jb     1266 <kernel_strsv_lt_inv_2_lib4+0x166>
lea    -0x3(%rdi),%r10d
shl    $0x2,%r11
mov    $0x4,%edx
movaps 0xe88(%rip),%xmm8
nopl   0x0(%rax,%rax,1)
movaps %xmm0,%xmm9
movss  0x10(%rax),%xmm1
movss  (%rax),%xmm2
unpcklps %xmm1,%xmm2
movss  0x4(%rax),%xmm4
movss  0x8(%rax),%xmm11
movss  0xc(%rax),%xmm10
movss  (%r8),%xmm1
movss  0x4(%r8),%xmm3
movss  0x8(%r8),%xmm6
movss  0xc(%r8),%xmm7
shufps $0x0,%xmm1,%xmm1
movaps %xmm2,%xmm5
mulps  %xmm1,%xmm5
subps  %xmm5,%xmm0
movss  0x14(%rax),%xmm5
unpcklps %xmm5,%xmm4
shufps $0x0,%xmm3,%xmm3
movaps %xmm4,%xmm5
mulps  %xmm3,%xmm5
subps  %xmm5,%xmm0
movss  0x18(%rax),%xmm5
unpcklps %xmm5,%xmm11
shufps $0x0,%xmm6,%xmm6
movaps %xmm11,%xmm5
mulps  %xmm6,%xmm5
subps  %xmm5,%xmm0
movss  0x1c(%rax),%xmm5
unpcklps %xmm5,%xmm10
shufps $0x0,%xmm7,%xmm7
movaps %xmm10,%xmm5
mulps  %xmm7,%xmm5
subps  %xmm5,%xmm0
add    $0x4,%edx
add    $0x10,%r8
add    %r11,%rax
cmp    %r10d,%edx
jl     1180 <kernel_strsv_lt_inv_2_lib4+0x80>
xorps  %xmm8,%xmm2
xorps  %xmm8,%xmm4
xorps  %xmm8,%xmm11
xorps  %xmm8,%xmm10
mulps  %xmm1,%xmm2
addps  %xmm9,%xmm2
mulps  %xmm3,%xmm4
addps  %xmm2,%xmm4
mulps  %xmm6,%xmm11
addps  %xmm4,%xmm11
mulps  %xmm7,%xmm10
addps  %xmm11,%xmm10
mov    %edi,%r10d
and    $0xfffffffc,%r10d
movaps %xmm10,%xmm0
jmp    1266 <kernel_strsv_lt_inv_2_lib4+0x166>
lea    0x8(%rsi),%rax
add    $0x8,%r8
xorps  %xmm0,%xmm0
mov    $0x2,%r10d
mov    0x8(%rsp),%r11
cmp    %edi,%r10d
jge    131b <kernel_strsv_lt_inv_2_lib4+0x21b>
mov    %r10d,%edx
not    %edx
test   $0x1,%dil
je     12a6 <kernel_strsv_lt_inv_2_lib4+0x1a6>
movss  (%rax),%xmm1
movss  0x10(%rax),%xmm2
unpcklps %xmm2,%xmm1
movss  (%r8),%xmm2
shufps $0x0,%xmm2,%xmm2
mulps  %xmm1,%xmm2
subps  %xmm2,%xmm0
add    $0x4,%rax
add    $0x4,%r8
or     $0x1,%r10d
add    %edi,%edx
je     131b <kernel_strsv_lt_inv_2_lib4+0x21b>
sub    %r10d,%edi
xor    %edx,%edx
movaps 0xd4a(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
movss  (%rax,%rdx,4),%xmm4
movss  0x4(%rax,%rdx,4),%xmm2
movss  0x10(%rax,%rdx,4),%xmm3
unpcklps %xmm3,%xmm4
movss  0x14(%rax,%rdx,4),%xmm3
unpcklps %xmm3,%xmm2
movss  (%r8,%rdx,4),%xmm5
movss  0x4(%r8,%rdx,4),%xmm3
shufps $0x0,%xmm5,%xmm5
mulps  %xmm4,%xmm5
movaps %xmm0,%xmm4
subps  %xmm5,%xmm4
shufps $0x0,%xmm3,%xmm3
movaps %xmm2,%xmm5
mulps  %xmm3,%xmm5
movaps %xmm4,%xmm0
subps  %xmm5,%xmm0
add    $0x2,%rdx
cmp    %edx,%edi
jne    12c0 <kernel_strsv_lt_inv_2_lib4+0x1c0>
xorps  %xmm1,%xmm2
mulps  %xmm3,%xmm2
addps  %xmm4,%xmm2
movaps %xmm2,%xmm0
movss  (%r9),%xmm1
addss  %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm0
addss  0x4(%r9),%xmm0
mulss  0x4(%rcx),%xmm0
movss  %xmm0,0x4(%r11)
mulss  0x4(%rsi),%xmm0
subss  %xmm0,%xmm1
mulss  (%rcx),%xmm1
movss  %xmm1,(%r11)
ret

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

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