void geom_igam_cyl_rpz_B(double x[], double igam[3][3]) {
  igam[0][0] = 1.0;
  igam[0][1] = 0.0;
  igam[0][2] = 0.0;
  igam[1][0] = 0.0;
  igam[1][1] = 1.0 / (x[0] * x[0]);
  igam[1][2] = 0.0;
  igam[2][0] = 0.0;
  igam[2][1] = 0.0;
  igam[2][2] = 1.0;
}


x86 assembly (clang, -O0):
<geom_igam_cyl_rpz_B>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xee8(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
mulsd  (%rax),%xmm1
movsd  0xea8(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe6b(%rip),%xmm0
movsd  %xmm0,0x40(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<geom_igam_cyl_rpz_B>:
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rsi)
xorps  %xmm0,%xmm0
movups %xmm0,0x8(%rsi)
movq   $0x0,0x18(%rsi)
movsd  (%rdi),%xmm1
mulsd  %xmm1,%xmm1
movsd  0xed4(%rip),%xmm2
divsd  %xmm1,%xmm2
movsd  %xmm2,0x20(%rsi)
movups %xmm0,0x28(%rsi)
movq   $0x0,0x38(%rsi)
mov    %rax,0x40(%rsi)
ret

LLVM IR (-O0):
define void @geom_igam_cyl_rpz_B(double* %0, [3 x double]* %1) {
%3 = alloca double*
%4 = alloca [3 x double]*
store double* %0, double** %3
store [3 x double]* %1, [3 x double]** %4
%5 = load [3 x double]*, [3 x double]** %4
%6 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0
%7 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
store double 1.000000e+00, double* %7
%8 = load [3 x double]*, [3 x double]** %4
%9 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0
%10 = getelementptr inbounds [3 x double], [3 x double]* %9, i64 0, i64 1
store double 0.000000e+00, double* %10
%11 = load [3 x double]*, [3 x double]** %4
%12 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0
%13 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 2
store double 0.000000e+00, double* %13
%14 = load [3 x double]*, [3 x double]** %4
%15 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 1
%16 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 0
store double 0.000000e+00, double* %16
%17 = load double*, double** %3
%18 = getelementptr inbounds double, double* %17, i64 0
%19 = load double, double* %18
%20 = load double*, double** %3
%21 = getelementptr inbounds double, double* %20, i64 0
%22 = load double, double* %21
%23 = fmul double %19, %22
%24 = fdiv double 1.000000e+00, %23
%25 = load [3 x double]*, [3 x double]** %4
%26 = getelementptr inbounds [3 x double], [3 x double]* %25, i64 1
%27 = getelementptr inbounds [3 x double], [3 x double]* %26, i64 0, i64 1
store double %24, double* %27
%28 = load [3 x double]*, [3 x double]** %4
%29 = getelementptr inbounds [3 x double], [3 x double]* %28, i64 1
%30 = getelementptr inbounds [3 x double], [3 x double]* %29, i64 0, i64 2
store double 0.000000e+00, double* %30
%31 = load [3 x double]*, [3 x double]** %4
%32 = getelementptr inbounds [3 x double], [3 x double]* %31, i64 2
%33 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 0
store double 0.000000e+00, double* %33
%34 = load [3 x double]*, [3 x double]** %4
%35 = getelementptr inbounds [3 x double], [3 x double]* %34, i64 2
%36 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 1
store double 0.000000e+00, double* %36
%37 = load [3 x double]*, [3 x double]** %4
%38 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 2
%39 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 2
store double 1.000000e+00, double* %39
ret void
}

LLVM IR (-O2):
define void @geom_igam_cyl_rpz_B(double* nocapture %0, [3 x double]* nocapture writeonly %1) {
%3 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
store double 1.000000e+00, double* %3
%4 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 1
%5 = bitcast double* %4 to i8*
%6 = load double, double* %0
%7 = fmul double %6, %6
%8 = fdiv double 1.000000e+00, %7
%9 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 1
store double %8, double* %9
%10 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 2
%11 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 2, i64 2
%12 = bitcast double* %10 to i8*
store double 1.000000e+00, double* %11
ret void
}