void ca_harmonic_trap_forces_per_particle_charge(
    const double *positions, const double *q, double kx, double ky, double kz,
    double phi, double dt, int num_ptcls, double *forces) {
  double cphi = cos(phi);
  double sphi = sin(phi);
  double alpha, x, y, z;
  int i;
  for (i = 0; i < num_ptcls; ++i) {
    alpha = q[i] * dt;
    x = positions[i * 3 + 0];
    y = positions[i * 3 + 1];
    z = positions[i * 3 + 2];
    forces[i * 3 + 0] +=
        alpha * ((-kx * ((cphi) * (cphi)) - ky * ((sphi) * (sphi))) * x +
                 cphi * sphi * (ky - kx) * y);
    forces[i * 3 + 1] +=
        alpha * (cphi * sphi * (ky - kx) * x +
                 (-kx * ((sphi) * (sphi)) - ky * ((cphi) * (cphi))) * y);
    forces[i * 3 + 2] += -alpha * kz * z;
  }
}


x86 assembly (clang, -O0):
<ca_harmonic_trap_forces_per_particle_charge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
movsd  %xmm4,-0x38(%rbp)
mov    %edx,-0x3c(%rbp)
mov    %rcx,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1385 <ca_harmonic_trap_forces_per_particle_charge+0x265>
mov    -0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
imul   $0x3,-0x7c(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
imul   $0x3,-0x7c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x8(%rbp),%rax
imul   $0x3,-0x7c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
movsd  -0x50(%rbp),%xmm3
mulsd  -0x50(%rbp),%xmm3
movsd  -0x20(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm4
mulsd  -0x58(%rbp),%xmm4
mulsd  %xmm4,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x68(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm4
subsd  -0x18(%rbp),%xmm4
mulsd  %xmm4,%xmm1
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
mov    -0x48(%rbp),%rax
imul   $0x3,-0x7c(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  -0x58(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm2
movsd  -0x68(%rbp),%xmm3
movsd  -0x18(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x58(%rbp),%xmm5
mulsd  -0x58(%rbp),%xmm5
movsd  -0x20(%rbp),%xmm4
movsd  -0x50(%rbp),%xmm6
mulsd  -0x50(%rbp),%xmm6
mulsd  %xmm6,%xmm4
movq   %xmm4,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm4
mulsd  %xmm5,%xmm1
addsd  %xmm4,%xmm1
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
mov    -0x48(%rbp),%rax
imul   $0x3,-0x7c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
mov    -0x48(%rbp),%rax
imul   $0x3,-0x7c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    1178 <ca_harmonic_trap_forces_per_particle_charge+0x58>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ca_harmonic_trap_forces_per_particle_charge>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    %rcx,%rbx
mov    %edx,%ebp
movapd %xmm4,0x30(%rsp)
movsd  %xmm3,0x18(%rsp)
movapd %xmm2,0x20(%rsp)
movsd  %xmm1,0x10(%rsp)
movaps %xmm0,0x40(%rsp)
mov    %rsi,%r14
mov    %rdi,%r15
movapd %xmm3,%xmm0
call   1040 <cos@plt>
movapd %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <sin@plt>
movapd (%rsp),%xmm12
movapd 0x20(%rsp),%xmm11
movapd 0x30(%rsp),%xmm8
test   %ebp,%ebp
jle    13e1 <ca_harmonic_trap_forces_per_particle_charge+0x2c1>
movsd  0x10(%rsp),%xmm5
movapd %xmm5,%xmm2
movapd 0x40(%rsp),%xmm1
subsd  %xmm1,%xmm2
xorpd  0xe5d(%rip),%xmm1
movapd %xmm12,%xmm3
mulsd  %xmm12,%xmm3
mulsd  %xmm0,%xmm12
mulsd  %xmm0,%xmm0
movapd %xmm0,%xmm4
mulsd  %xmm5,%xmm4
movapd %xmm1,%xmm13
mulsd  %xmm3,%xmm13
subsd  %xmm4,%xmm13
mulsd  %xmm2,%xmm12
mulsd  %xmm5,%xmm3
mulsd  %xmm1,%xmm0
subsd  %xmm3,%xmm0
mov    %ebp,%eax
cmp    $0x1,%ebp
jne    11ec <ca_harmonic_trap_forces_per_particle_charge+0xcc>
xor    %ecx,%ecx
jmp    1359 <ca_harmonic_trap_forces_per_particle_charge+0x239>
lea    0x0(,%rax,8),%rcx
lea    (%rcx,%rcx,2),%rcx
lea    (%rbx,%rcx,1),%rsi
lea    (%r14,%rax,8),%rdx
add    %r15,%rcx
cmp    %rbx,%rdx
seta   %dil
cmp    %r14,%rsi
seta   %r8b
cmp    %rbx,%rcx
seta   %dl
cmp    %r15,%rsi
seta   %sil
xor    %ecx,%ecx
test   %r8b,%dil
jne    1359 <ca_harmonic_trap_forces_per_particle_charge+0x239>
and    %sil,%dl
jne    1359 <ca_harmonic_trap_forces_per_particle_charge+0x239>
mov    %eax,%ecx
and    $0xfffffffe,%ecx
unpcklpd %xmm8,%xmm8
movapd %xmm12,(%rsp)
unpcklpd %xmm12,%xmm12
movapd %xmm13,%xmm9
unpcklpd %xmm13,%xmm9
movapd %xmm0,%xmm10
unpcklpd %xmm0,%xmm10
unpcklpd %xmm11,%xmm11
xor    %edx,%edx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd (%r14,%rsi,8),%xmm2
mulpd  %xmm8,%xmm2
movupd (%r15,%rdx,1),%xmm3
movupd 0x10(%r15,%rdx,1),%xmm5
movupd 0x20(%r15,%rdx,1),%xmm14
movapd %xmm5,%xmm7
movsd  %xmm3,%xmm7
shufpd $0x1,%xmm14,%xmm3
movsd  %xmm5,%xmm14
movapd %xmm12,%xmm6
mulpd  %xmm3,%xmm6
movapd %xmm9,%xmm5
mulpd  %xmm7,%xmm5
addpd  %xmm6,%xmm5
movupd (%rbx,%rdx,1),%xmm1
movupd 0x10(%rbx,%rdx,1),%xmm15
movupd 0x20(%rbx,%rdx,1),%xmm6
movapd %xmm15,%xmm4
movsd  %xmm1,%xmm4
shufpd $0x1,%xmm6,%xmm1
movsd  %xmm15,%xmm6
mulpd  %xmm2,%xmm5
addpd  %xmm4,%xmm5
mulpd  %xmm10,%xmm3
mulpd  %xmm12,%xmm7
addpd  %xmm3,%xmm7
mulpd  %xmm2,%xmm7
addpd  %xmm1,%xmm7
mulpd  %xmm11,%xmm2
mulpd  %xmm14,%xmm2
subpd  %xmm2,%xmm6
movapd %xmm7,%xmm1
unpckhpd %xmm6,%xmm1
shufpd $0x2,%xmm5,%xmm6
unpcklpd %xmm7,%xmm5
movupd %xmm5,(%rbx,%rdx,1)
movupd %xmm6,0x10(%rbx,%rdx,1)
movupd %xmm1,0x20(%rbx,%rdx,1)
add    $0x2,%rsi
add    $0x30,%rdx
cmp    %rsi,%rcx
jne    1270 <ca_harmonic_trap_forces_per_particle_charge+0x150>
cmp    %rax,%rcx
movapd 0x30(%rsp),%xmm8
movapd 0x20(%rsp),%xmm11
movapd (%rsp),%xmm12
je     13e1 <ca_harmonic_trap_forces_per_particle_charge+0x2c1>
unpcklpd %xmm12,%xmm13
unpcklpd %xmm0,%xmm12
lea    (%rcx,%rcx,2),%rdx
lea    0x10(,%rdx,8),%rdx
nop
movsd  (%r14,%rcx,8),%xmm0
mulsd  %xmm8,%xmm0
movsd  -0x10(%r15,%rdx,1),%xmm1
movsd  -0x8(%r15,%rdx,1),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm12,%xmm2
unpcklpd %xmm1,%xmm1
mulpd  %xmm13,%xmm1
addpd  %xmm2,%xmm1
movupd -0x10(%rbx,%rdx,1),%xmm2
movapd %xmm0,%xmm3
unpcklpd %xmm0,%xmm3
mulpd  %xmm1,%xmm3
mulsd  %xmm11,%xmm0
mulsd  (%r15,%rdx,1),%xmm0
addpd  %xmm2,%xmm3
movupd %xmm3,-0x10(%rbx,%rdx,1)
movsd  (%rbx,%rdx,1),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rdx,1)
add    $0x1,%rcx
add    $0x18,%rdx
cmp    %rcx,%rax
jne    1370 <ca_harmonic_trap_forces_per_particle_charge+0x250>
add    $0x58,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @ca_harmonic_trap_forces_per_particle_charge(double* %0, double* %1, double %2, double %3, double %4, double %5, double %6, i32 %7, double* %8) {
%10 = alloca double*
%11 = alloca double*
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i32
%18 = alloca double*
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca i32
store double* %0, double** %10
store double* %1, double** %11
store double %2, double* %12
store double %3, double* %13
store double %4, double* %14
store double %5, double* %15
store double %6, double* %16
store i32 %7, i32* %17
store double* %8, double** %18
%26 = load double, double* %15
%27 = call double @cos(double %26)
store double %27, double* %19
%28 = load double, double* %15
%29 = call double @sin(double %28)
store double %29, double* %20
store i32 0, i32* %25
br label %30
30: ; preds = %140, %9
%31 = load i32, i32* %25
%32 = load i32, i32* %17
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %143
34: ; preds = %30
%35 = load double*, double** %11
%36 = load i32, i32* %25
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
%39 = load double, double* %38
%40 = load double, double* %16
%41 = fmul double %39, %40
store double %41, double* %21
%42 = load double*, double** %10
%43 = load i32, i32* %25
%44 = mul nsw i32 %43, 3
%45 = add nsw i32 %44, 0
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %42, i64 %46
%48 = load double, double* %47
store double %48, double* %22
%49 = load double*, double** %10
%50 = load i32, i32* %25
%51 = mul nsw i32 %50, 3
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %49, i64 %53
%55 = load double, double* %54
store double %55, double* %23
%56 = load double*, double** %10
%57 = load i32, i32* %25
%58 = mul nsw i32 %57, 3
%59 = add nsw i32 %58, 2
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %56, i64 %60
%62 = load double, double* %61
store double %62, double* %24
%63 = load double, double* %21
%64 = load double, double* %12
%65 = fneg double %64
%66 = load double, double* %19
%67 = load double, double* %19
%68 = fmul double %66, %67
%69 = load double, double* %13
%70 = load double, double* %20
%71 = load double, double* %20
%72 = fmul double %70, %71
%73 = fmul double %69, %72
%74 = fneg double %73
%75 = call double @llvm.fmuladd.f64(double %65, double %68, double %74)
%76 = load double, double* %22
%77 = load double, double* %19
%78 = load double, double* %20
%79 = fmul double %77, %78
%80 = load double, double* %13
%81 = load double, double* %12
%82 = fsub double %80, %81
%83 = fmul double %79, %82
%84 = load double, double* %23
%85 = fmul double %83, %84
%86 = call double @llvm.fmuladd.f64(double %75, double %76, double %85)
%87 = load double*, double** %18
%88 = load i32, i32* %25
%89 = mul nsw i32 %88, 3
%90 = add nsw i32 %89, 0
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %87, i64 %91
%93 = load double, double* %92
%94 = call double @llvm.fmuladd.f64(double %63, double %86, double %93)
store double %94, double* %92
%95 = load double, double* %21
%96 = load double, double* %19
%97 = load double, double* %20
%98 = fmul double %96, %97
%99 = load double, double* %13
%100 = load double, double* %12
%101 = fsub double %99, %100
%102 = fmul double %98, %101
%103 = load double, double* %22
%104 = load double, double* %12
%105 = fneg double %104
%106 = load double, double* %20
%107 = load double, double* %20
%108 = fmul double %106, %107
%109 = load double, double* %13
%110 = load double, double* %19
%111 = load double, double* %19
%112 = fmul double %110, %111
%113 = fmul double %109, %112
%114 = fneg double %113
%115 = call double @llvm.fmuladd.f64(double %105, double %108, double %114)
%116 = load double, double* %23
%117 = fmul double %115, %116
%118 = call double @llvm.fmuladd.f64(double %102, double %103, double %117)
%119 = load double*, double** %18
%120 = load i32, i32* %25
%121 = mul nsw i32 %120, 3
%122 = add nsw i32 %121, 1
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, double* %119, i64 %123
%125 = load double, double* %124
%126 = call double @llvm.fmuladd.f64(double %95, double %118, double %125)
store double %126, double* %124
%127 = load double, double* %21
%128 = fneg double %127
%129 = load double, double* %14
%130 = fmul double %128, %129
%131 = load double, double* %24
%132 = load double*, double** %18
%133 = load i32, i32* %25
%134 = mul nsw i32 %133, 3
%135 = add nsw i32 %134, 2
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double, double* %132, i64 %136
%138 = load double, double* %137
%139 = call double @llvm.fmuladd.f64(double %130, double %131, double %138)
store double %139, double* %137
br label %140
140: ; preds = %34
%141 = load i32, i32* %25
%142 = add nsw i32 %141, 1
store i32 %142, i32* %25
br label %30
143: ; preds = %30
ret void
}

LLVM IR (-O2):
define void @ca_harmonic_trap_forces_per_particle_charge(double* nocapture %0, double* nocapture %1, double %2, double %3, double %4, double %5, double %6, i32 %7, double* nocapture %8) {
%10 = tail call double @cos(double %5)
%11 = tail call double @sin(double %5)
%12 = icmp sgt i32 %7, 0
br i1 %12, label %13, label %129
13: ; preds = %9
%14 = fneg double %2
%15 = fmul double %10, %10
%16 = fmul double %11, %11
%17 = fneg double %16
%18 = fmul double %17, %3
%19 = tail call double @llvm.fmuladd.f64(double %14, double %15, double %18)
%20 = fmul double %10, %11
%21 = fsub double %3, %2
%22 = fmul double %21, %20
%23 = fneg double %15
%24 = fmul double %23, %3
%25 = tail call double @llvm.fmuladd.f64(double %14, double %16, double %24)
%26 = zext i32 %7 to i64
%27 = icmp eq i32 %7, 1
br i1 %27, label %89, label %28
28: ; preds = %13
%29 = mul nuw nsw i64 %26, 3
%30 = getelementptr double, double* %8, i64 %29
%31 = getelementptr double, double* %1, i64 %26
%32 = getelementptr double, double* %0, i64 %29
%33 = icmp ugt double* %31, %8
%34 = icmp ugt double* %30, %1
%35 = and i1 %33, %34
%36 = icmp ugt double* %32, %8
%37 = icmp ugt double* %30, %0
%38 = and i1 %36, %37
%39 = or i1 %35, %38
br i1 %39, label %89, label %40
40: ; preds = %28
%41 = and i64 %26, 4294967294
%42 = insertelement <2 x double> poison, double %6, i64 0
%43 = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> zeroinitializer
%44 = insertelement <2 x double> poison, double %22, i64 0
%45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> zeroinitializer
%46 = insertelement <2 x double> poison, double %19, i64 0
%47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
%48 = insertelement <2 x double> poison, double %25, i64 0
%49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
%50 = insertelement <2 x double> poison, double %4, i64 0
%51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
br label %52
52: ; preds = %52, %40
%53 = phi i64 [ 0, %40 ], [ %85, %52 ]
%54 = getelementptr inbounds double, double* %1, i64 %53
%55 = bitcast double* %54 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = fmul <2 x double> %56, %43
%58 = mul nuw nsw i64 %53, 3
%59 = getelementptr inbounds double, double* %0, i64 %58
%60 = bitcast double* %59 to <6 x double>*
%61 = load <6 x double>, <6 x double>* %60
%62 = shufflevector <6 x double> %61, <6 x double> poison, <2 x i32> <i32 0, i32 3>
%63 = shufflevector <6 x double> %61, <6 x double> poison, <2 x i32> <i32 1, i32 4>
%64 = shufflevector <6 x double> %61, <6 x double> poison, <2 x i32> <i32 2, i32 5>
%65 = fmul <2 x double> %45, %63
%66 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %47, <2 x double> %62, <2 x double> %65)
%67 = getelementptr inbounds double, double* %8, i64 %58
%68 = bitcast double* %67 to <6 x double>*
%69 = load <6 x double>, <6 x double>* %68
%70 = shufflevector <6 x double> %69, <6 x double> poison, <2 x i32> <i32 0, i32 3>
%71 = shufflevector <6 x double> %69, <6 x double> poison, <2 x i32> <i32 1, i32 4>
%72 = shufflevector <6 x double> %69, <6 x double> poison, <2 x i32> <i32 2, i32 5>
%73 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %57, <2 x double> %66, <2 x double> %70)
%74 = fmul <2 x double> %49, %63
%75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %62, <2 x double> %74)
%76 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %57, <2 x double> %75, <2 x double> %71)
%77 = fneg <2 x double> %57
%78 = fmul <2 x double> %51, %77
%79 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %78, <2 x double> %64, <2 x double> %72)
%80 = getelementptr inbounds double, double* %8, i64 %58
%81 = bitcast double* %80 to <6 x double>*
%82 = shufflevector <2 x double> %73, <2 x double> %76, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
%83 = shufflevector <2 x double> %79, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%84 = shufflevector <4 x double> %82, <4 x double> %83, <6 x i32> <i32 0, i32 2, i32 4, i32 1, i32 3, i32 5>
store <6 x double> %84, <6 x double>* %81
%85 = add nuw i64 %53, 2
%86 = icmp eq i64 %85, %41
br i1 %86, label %87, label %52
87: ; preds = %52
%88 = icmp eq i64 %41, %26
br i1 %88, label %129, label %89
89: ; preds = %28, %13, %87
%90 = phi i64 [ 0, %28 ], [ 0, %13 ], [ %41, %87 ]
%91 = insertelement <2 x double> poison, double %22, i64 0
%92 = insertelement <2 x double> %91, double %25, i64 1
%93 = insertelement <2 x double> poison, double %19, i64 0
%94 = insertelement <2 x double> %93, double %22, i64 1
br label %95
95: ; preds = %89, %95
%96 = phi i64 [ %127, %95 ], [ %90, %89 ]
%97 = getelementptr inbounds double, double* %1, i64 %96
%98 = load double, double* %97
%99 = fmul double %98, %6
%100 = mul nuw nsw i64 %96, 3
%101 = getelementptr inbounds double, double* %0, i64 %100
%102 = load double, double* %101
%103 = add nuw nsw i64 %100, 1
%104 = getelementptr inbounds double, double* %0, i64 %103
%105 = load double, double* %104
%106 = add nuw nsw i64 %100, 2
%107 = getelementptr inbounds double, double* %0, i64 %106
%108 = load double, double* %107
%109 = getelementptr inbounds double, double* %8, i64 %100
%110 = insertelement <2 x double> poison, double %105, i64 0
%111 = shufflevector <2 x double> %110, <2 x double> poison, <2 x i32> zeroinitializer
%112 = fmul <2 x double> %92, %111
%113 = insertelement <2 x double> poison, double %102, i64 0
%114 = shufflevector <2 x double> %113, <2 x double> poison, <2 x i32> zeroinitializer
%115 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %94, <2 x double> %114, <2 x double> %112)
%116 = bitcast double* %109 to <2 x double>*
%117 = load <2 x double>, <2 x double>* %116
%118 = insertelement <2 x double> poison, double %99, i64 0
%119 = shufflevector <2 x double> %118, <2 x double> poison, <2 x i32> zeroinitializer
%120 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %119, <2 x double> %115, <2 x double> %117)
%121 = bitcast double* %109 to <2 x double>*
store <2 x double> %120, <2 x double>* %121
%122 = fneg double %99
%123 = fmul double %122, %4
%124 = getelementptr inbounds double, double* %8, i64 %106
%125 = load double, double* %124
%126 = tail call double @llvm.fmuladd.f64(double %123, double %108, double %125)
store double %126, double* %124
%127 = add nuw nsw i64 %96, 1
%128 = icmp eq i64 %127, %26
br i1 %128, label %129, label %95
129: ; preds = %95, %87, %9
ret void
}