void buildRot(float theta, float x, float y, float z, float m[16]) {
  float d = x * x + y * y + z * z;
  float ct = ((float)cos(((((theta)*3.14159265358979323846) / 180.)))),
        st = ((float)sin(((((theta)*3.14159265358979323846) / 180.))));
  if (d > 0) {
    d = 1 / d;
    x *= d;
    y *= d;
    z *= d;
  }
  m[0] = 1;
  m[1] = 0;
  m[2] = 0;
  m[3] = 0;
  m[4] = 0;
  m[5] = 1;
  m[6] = 0;
  m[7] = 0;
  m[8] = 0;
  m[9] = 0;
  m[10] = 1;
  m[11] = 0;
  m[12] = 0;
  m[13] = 0;
  m[14] = 0;
  m[15] = 1;
  m[0] = x * x + ct * (1 - x * x) + st * 0;
  m[4] = x * y + ct * (0 - x * y) + st * -z;
  m[8] = x * z + ct * (0 - x * z) + st * y;
  m[1] = y * x + ct * (0 - y * x) + st * z;
  m[5] = y * y + ct * (1 - y * y) + st * 0;
  m[9] = y * z + ct * (0 - y * z) + st * -x;
  m[2] = z * x + ct * (0 - z * x) + st * -y;
  m[6] = z * y + ct * (0 - z * y) + st * x;
  m[10] = z * z + ct * (1 - z * z) + st * 0;
}


x86 assembly (clang, -O0):
<buildRot>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe84(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe70(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe55(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe41(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1221 <buildRot+0x101>
movss  0xe26(%rip),%xmm0
divss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x1c(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x1c(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x18(%rbp),%rax
movss  0xde3(%rip),%xmm0
movss  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rax)
mov    -0x18(%rbp),%rax
movss  0xda3(%rip),%xmm0
movss  %xmm0,0x14(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x1c(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x20(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x24(%rax)
mov    -0x18(%rbp),%rax
movss  0xd62(%rip),%xmm0
movss  %xmm0,0x28(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x2c(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x30(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x34(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x38(%rax)
mov    -0x18(%rbp),%rax
movss  0xd21(%rip),%xmm0
movss  %xmm0,0x3c(%rax)
movss  -0x8(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0x8(%rbp),%xmm3
movss  -0x8(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
movss  0xcea(%rip),%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
xorps  %xmm2,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0x8(%rbp),%xmm3
movss  -0xc(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
xorps  %xmm4,%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
movss  -0x10(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x10(%rax)
movss  -0x8(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0x8(%rbp),%xmm3
movss  -0x10(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
xorps  %xmm4,%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x20(%rax)
movss  -0xc(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0xc(%rbp),%xmm3
movss  -0x8(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
xorps  %xmm4,%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
movss  -0x10(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x4(%rax)
movss  -0xc(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0xc(%rbp),%xmm3
movss  -0xc(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
movss  0xb7b(%rip),%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
xorps  %xmm2,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x14(%rax)
movss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0xc(%rbp),%xmm3
movss  -0x10(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
xorps  %xmm4,%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x24(%rax)
movss  -0x10(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0x10(%rbp),%xmm3
movss  -0x8(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
xorps  %xmm4,%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x8(%rax)
movss  -0x10(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0x10(%rbp),%xmm3
movss  -0xc(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
xorps  %xmm4,%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x18(%rax)
movss  -0x10(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movss  -0x10(%rbp),%xmm3
movss  -0x10(%rbp),%xmm4
movd   %xmm3,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
mulss  %xmm4,%xmm3
movss  0x9fe(%rip),%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
xorps  %xmm2,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x28(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<buildRot>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
movss  %xmm2,0xc(%rsp)
movaps %xmm2,%xmm4
mulss  %xmm2,%xmm4
movss  %xmm1,0x4(%rsp)
movaps %xmm1,%xmm2
mulss  %xmm1,%xmm2
addss  %xmm4,%xmm2
movss  %xmm3,0x8(%rsp)
mulss  %xmm3,%xmm3
addss  %xmm2,%xmm3
movss  %xmm3,0x10(%rsp)
cvtss2sd %xmm0,%xmm0
mulsd  0xe9a(%rip),%xmm0
divsd  0xe9a(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
call   1040 <cos@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x14(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <sin@plt>
cvtsd2ss %xmm0,%xmm11
movss  0x10(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    11d1 <buildRot+0xb1>
movss  0xe67(%rip),%xmm2
divss  %xmm0,%xmm2
movss  0x4(%rsp),%xmm10
mulss  %xmm2,%xmm10
movss  0xc(%rsp),%xmm0
mulss  %xmm2,%xmm0
movss  0x8(%rsp),%xmm9
mulss  %xmm2,%xmm9
jmp    11e5 <buildRot+0xc5>
movss  0x8(%rsp),%xmm9
movss  0x4(%rsp),%xmm10
movss  0xc(%rsp),%xmm0
movl   $0x0,0xc(%rbx)
movl   $0x0,0x1c(%rbx)
xorps  %xmm2,%xmm2
movups %xmm2,0x2c(%rbx)
movl   $0x3f800000,0x3c(%rbx)
movaps %xmm10,%xmm3
mulss  %xmm10,%xmm3
movss  0xdfe(%rip),%xmm2
movaps %xmm2,%xmm4
subss  %xmm3,%xmm4
movss  0x14(%rsp),%xmm12
mulss  %xmm12,%xmm4
addss  %xmm3,%xmm4
movaps %xmm11,%xmm8
mulss  %xmm1,%xmm8
addss  %xmm8,%xmm4
movss  %xmm4,(%rbx)
movaps %xmm10,%xmm4
mulss  %xmm0,%xmm4
xorps  %xmm6,%xmm6
subss  %xmm4,%xmm6
mulss  %xmm12,%xmm6
addss  %xmm4,%xmm6
movaps %xmm11,%xmm7
mulss  %xmm9,%xmm7
movaps %xmm6,%xmm4
subss  %xmm7,%xmm4
movss  %xmm4,0x10(%rbx)
movaps %xmm10,%xmm3
mulss  %xmm9,%xmm3
movaps %xmm11,%xmm4
mulss  %xmm0,%xmm4
xorps  %xmm5,%xmm5
subss  %xmm3,%xmm5
mulss  %xmm12,%xmm5
addss  %xmm3,%xmm5
movaps %xmm4,%xmm3
addss  %xmm5,%xmm3
movss  %xmm3,0x20(%rbx)
addss  %xmm6,%xmm7
movss  %xmm7,0x4(%rbx)
movaps %xmm0,%xmm3
mulss  %xmm0,%xmm3
movaps %xmm2,%xmm6
subss  %xmm3,%xmm6
mulss  %xmm12,%xmm6
addss  %xmm3,%xmm6
addss  %xmm8,%xmm6
movss  %xmm6,0x14(%rbx)
mulss  %xmm9,%xmm0
subss  %xmm0,%xmm1
mulss  %xmm12,%xmm1
addss  %xmm0,%xmm1
mulss  %xmm10,%xmm11
movaps %xmm1,%xmm3
subss  %xmm11,%xmm3
movss  %xmm3,0x24(%rbx)
subss  %xmm4,%xmm5
movss  %xmm5,0x8(%rbx)
addss  %xmm1,%xmm11
movss  %xmm11,0x18(%rbx)
mulss  %xmm9,%xmm9
subss  %xmm9,%xmm2
mulss  %xmm12,%xmm2
addss  %xmm9,%xmm2
addss  %xmm8,%xmm2
movss  %xmm2,0x28(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define void @buildRot(float %0, float %1, float %2, float %3, float* nocapture writeonly %4) {
%6 = fmul float %2, %2
%7 = tail call float @llvm.fmuladd.f32(float %1, float %1, float %6)
%8 = tail call float @llvm.fmuladd.f32(float %3, float %3, float %7)
%9 = fpext float %0 to double
%10 = fmul double %9, 0x400921FB54442D18
%11 = fdiv double %10, 1.800000e+02
%12 = tail call double @cos(double %11)
%13 = fptrunc double %12 to float
%14 = tail call double @sin(double %11)
%15 = fptrunc double %14 to float
%16 = fcmp ogt float %8, 0.000000e+00
br i1 %16, label %17, label %22
17: ; preds = %5
%18 = fdiv float 1.000000e+00, %8
%19 = fmul float %18, %1
%20 = fmul float %18, %2
%21 = fmul float %18, %3
br label %22
22: ; preds = %17, %5
%23 = phi float [ %21, %17 ], [ %3, %5 ]
%24 = phi float [ %20, %17 ], [ %2, %5 ]
%25 = phi float [ %19, %17 ], [ %1, %5 ]
%26 = getelementptr inbounds float, float* %4, i64 1
%27 = getelementptr inbounds float, float* %4, i64 2
%28 = getelementptr inbounds float, float* %4, i64 4
%29 = getelementptr inbounds float, float* %4, i64 5
%30 = getelementptr inbounds float, float* %4, i64 3
%31 = bitcast float* %30 to i32*
store i32 0, i32* %31
%32 = getelementptr inbounds float, float* %4, i64 6
%33 = getelementptr inbounds float, float* %4, i64 8
%34 = getelementptr inbounds float, float* %4, i64 9
%35 = getelementptr inbounds float, float* %4, i64 10
%36 = getelementptr inbounds float, float* %4, i64 7
%37 = bitcast float* %36 to i32*
store i32 0, i32* %37
%38 = getelementptr inbounds float, float* %4, i64 11
%39 = getelementptr inbounds float, float* %4, i64 15
%40 = bitcast float* %38 to i8*
store float 1.000000e+00, float* %39
%41 = fneg float %25
%42 = tail call float @llvm.fmuladd.f32(float %41, float %25, float 1.000000e+00)
%43 = fmul float %42, %13
%44 = tail call float @llvm.fmuladd.f32(float %25, float %25, float %43)
%45 = tail call float @llvm.fmuladd.f32(float %15, float 0.000000e+00, float %44)
store float %45, float* %4
%46 = tail call float @llvm.fmuladd.f32(float %41, float %24, float 0.000000e+00)
%47 = fmul float %46, %13
%48 = tail call float @llvm.fmuladd.f32(float %25, float %24, float %47)
%49 = fneg float %23
%50 = tail call float @llvm.fmuladd.f32(float %15, float %49, float %48)
store float %50, float* %28
%51 = tail call float @llvm.fmuladd.f32(float %41, float %23, float 0.000000e+00)
%52 = fmul float %51, %13
%53 = tail call float @llvm.fmuladd.f32(float %25, float %23, float %52)
%54 = tail call float @llvm.fmuladd.f32(float %15, float %24, float %53)
store float %54, float* %33
%55 = fneg float %24
%56 = tail call float @llvm.fmuladd.f32(float %55, float %25, float 0.000000e+00)
%57 = fmul float %56, %13
%58 = tail call float @llvm.fmuladd.f32(float %24, float %25, float %57)
%59 = tail call float @llvm.fmuladd.f32(float %15, float %23, float %58)
store float %59, float* %26
%60 = tail call float @llvm.fmuladd.f32(float %55, float %24, float 1.000000e+00)
%61 = fmul float %60, %13
%62 = tail call float @llvm.fmuladd.f32(float %24, float %24, float %61)
%63 = tail call float @llvm.fmuladd.f32(float %15, float 0.000000e+00, float %62)
store float %63, float* %29
%64 = tail call float @llvm.fmuladd.f32(float %55, float %23, float 0.000000e+00)
%65 = fmul float %64, %13
%66 = tail call float @llvm.fmuladd.f32(float %24, float %23, float %65)
%67 = tail call float @llvm.fmuladd.f32(float %15, float %41, float %66)
store float %67, float* %34
%68 = tail call float @llvm.fmuladd.f32(float %49, float %25, float 0.000000e+00)
%69 = fmul float %68, %13
%70 = tail call float @llvm.fmuladd.f32(float %23, float %25, float %69)
%71 = tail call float @llvm.fmuladd.f32(float %15, float %55, float %70)
store float %71, float* %27
%72 = tail call float @llvm.fmuladd.f32(float %49, float %24, float 0.000000e+00)
%73 = fmul float %72, %13
%74 = tail call float @llvm.fmuladd.f32(float %23, float %24, float %73)
%75 = tail call float @llvm.fmuladd.f32(float %15, float %25, float %74)
store float %75, float* %32
%76 = tail call float @llvm.fmuladd.f32(float %49, float %23, float 1.000000e+00)
%77 = fmul float %76, %13
%78 = tail call float @llvm.fmuladd.f32(float %23, float %23, float %77)
%79 = tail call float @llvm.fmuladd.f32(float %15, float 0.000000e+00, float %78)
store float %79, float* %35
ret void
}