double eval_horn_NR_corrxn(const double *c, const double x) {
  double x2 = x * x;
  double b = (x2 + c[2]) * x;
  double a = b + c[1];
  return ((a * x + c[0]) / (2.0 * x2 * x + b + a));
}


x86 assembly (clang, -O0):
<eval_horn_NR_corrxn>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x10(%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe97(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm3
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
addsd  -0x28(%rbp),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<eval_horn_NR_corrxn>:
movapd %xmm0,%xmm2
mulsd  %xmm0,%xmm2
movsd  0x10(%rdi),%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rdi),%xmm3
addsd  %xmm1,%xmm3
addsd  %xmm2,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movapd %xmm3,%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rdi),%xmm1
divsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @eval_horn_NR_corrxn(double* %0, double %1) {
%3 = alloca double*
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double* %0, double** %3
store double %1, double* %4
%8 = load double, double* %4
%9 = load double, double* %4
%10 = fmul double %8, %9
store double %10, double* %5
%11 = load double, double* %5
%12 = load double*, double** %3
%13 = getelementptr inbounds double, double* %12, i64 2
%14 = load double, double* %13
%15 = fadd double %11, %14
%16 = load double, double* %4
%17 = fmul double %15, %16
store double %17, double* %6
%18 = load double, double* %6
%19 = load double*, double** %3
%20 = getelementptr inbounds double, double* %19, i64 1
%21 = load double, double* %20
%22 = fadd double %18, %21
store double %22, double* %7
%23 = load double, double* %7
%24 = load double, double* %4
%25 = load double*, double** %3
%26 = getelementptr inbounds double, double* %25, i64 0
%27 = load double, double* %26
%28 = call double @llvm.fmuladd.f64(double %23, double %24, double %27)
%29 = load double, double* %5
%30 = fmul double 2.000000e+00, %29
%31 = load double, double* %4
%32 = load double, double* %6
%33 = call double @llvm.fmuladd.f64(double %30, double %31, double %32)
%34 = load double, double* %7
%35 = fadd double %33, %34
%36 = fdiv double %28, %35
ret double %36
}

LLVM IR (-O2):
define double @eval_horn_NR_corrxn(double* nocapture %0, double %1) {
%3 = fmul double %1, %1
%4 = getelementptr inbounds double, double* %0, i64 2
%5 = load double, double* %4
%6 = fadd double %3, %5
%7 = fmul double %6, %1
%8 = getelementptr inbounds double, double* %0, i64 1
%9 = load double, double* %8
%10 = fadd double %9, %7
%11 = load double, double* %0
%12 = tail call double @llvm.fmuladd.f64(double %10, double %1, double %11)
%13 = fmul double %3, 2.000000e+00
%14 = tail call double @llvm.fmuladd.f64(double %13, double %1, double %7)
%15 = fadd double %14, %10
%16 = fdiv double %12, %15
ret double %16
}