void tce_sort_4kg_4321__(double *A, double *B, int *dim1, int *dim2, int *dim3,
                         int *dim4, double *factor) {
  int i, j, k, l;
  double *bPtr = B;
  double *aPtr[4];
  int d1 = (*dim1);
  int d2 = (*dim2);
  int d3 = (*dim3);
  int d4 = (*dim4);
  aPtr[0] = A;
  aPtr[1] = A;
  aPtr[2] = A;
  aPtr[3] = A;
  for (i = 0; i < d1; i++) {
    aPtr[2] = aPtr[3];
    for (j = 0; j < d2; j++) {
      aPtr[1] = aPtr[2];
      for (k = 0; k < d3; k++) {
        aPtr[0] = aPtr[1];
        for (l = 0; l < d4; l++) {
          *bPtr++ = *aPtr[0];
          aPtr[0] += d1 * d2 * d3;
        }
        aPtr[1] += d1 * d2;
      }
      aPtr[2] += d1;
    }
    aPtr[3] += 1;
  }
}


x86 assembly (clang, -O0):
<tce_sort_4kg_4321__>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x78(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x80(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x74(%rbp),%eax
jge    127a <tce_sort_4kg_4321__+0x17a>
mov    -0x58(%rbp),%rax
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x78(%rbp),%eax
jge    1260 <tce_sort_4kg_4321__+0x160>
mov    -0x60(%rbp),%rax
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x7c(%rbp),%eax
jge    123d <tce_sort_4kg_4321__+0x13d>
mov    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x80(%rbp),%eax
jge    1216 <tce_sort_4kg_4321__+0x116>
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  %xmm0,(%rax)
mov    -0x74(%rbp),%ecx
imul   -0x78(%rbp),%ecx
imul   -0x7c(%rbp),%ecx
mov    -0x70(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11c4 <tce_sort_4kg_4321__+0xc4>
mov    -0x74(%rbp),%ecx
imul   -0x78(%rbp),%ecx
mov    -0x68(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11a9 <tce_sort_4kg_4321__+0xa9>
mov    -0x74(%rbp),%ecx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    118e <tce_sort_4kg_4321__+0x8e>
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1173 <tce_sort_4kg_4321__+0x73>
pop    %rbp
ret

x86 assembly (clang, -O2):
<tce_sort_4kg_4321__>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    %rdi,-0x8(%rsp)
mov    (%rdx),%edx
mov    %rdx,%rax
mov    %rdx,-0x70(%rsp)
test   %edx,%edx
jle    1469 <tce_sort_4kg_4321__+0x369>
mov    (%rcx),%ecx
mov    (%r8),%r13d
mov    (%r9),%ebp
mov    -0x70(%rsp),%r8
mov    %r8d,%eax
mov    %ecx,-0x78(%rsp)
imul   %ecx,%eax
movslq %eax,%rbx
imul   %r13d,%eax
cltq
mov    %ebp,%ecx
and    $0x7,%ecx
mov    %ecx,-0x74(%rsp)
mov    %ebp,%ecx
and    $0xfffffff8,%ecx
mov    %ecx,-0x5c(%rsp)
mov    %rax,%rcx
shl    $0x6,%rcx
mov    %rcx,0x50(%rsp)
imul   $0x38,%rax,%rcx
mov    -0x8(%rsp),%rdx
add    %rdx,%rcx
mov    %rcx,-0x10(%rsp)
lea    (%rax,%rax,2),%rcx
lea    (%rdx,%rcx,8),%rdi
mov    %rdi,-0x20(%rsp)
shl    $0x4,%rcx
add    %rdx,%rcx
mov    %rcx,-0x18(%rsp)
lea    (%rax,%rax,4),%rcx
lea    (%rdx,%rcx,8),%rcx
mov    %rcx,-0x28(%rsp)
mov    %rax,%rcx
shl    $0x5,%rcx
add    %rdx,%rcx
mov    %rcx,-0x30(%rsp)
mov    %rax,%rcx
shl    $0x4,%rcx
add    %rdx,%rcx
mov    %rcx,-0x38(%rsp)
lea    (%rdx,%rax,8),%rcx
mov    %rcx,-0x40(%rsp)
shl    $0x3,%rax
mov    %rbp,0x68(%rsp)
lea    -0x1(%rbp),%ecx
mov    %ecx,-0x54(%rsp)
lea    0x0(,%r8,8),%rcx
mov    %rcx,(%rsp)
mov    %rbx,0x60(%rsp)
lea    0x0(,%rbx,8),%rcx
mov    %rcx,0x58(%rsp)
xor    %ecx,%ecx
mov    %rcx,-0x48(%rsp)
movl   $0x0,-0x7c(%rsp)
mov    %rdx,-0x50(%rsp)
mov    %r13d,-0x58(%rsp)
mov    %rax,0x48(%rsp)
jmp    125b <tce_sort_4kg_4321__+0x15b>
nop
addq   $0x8,-0x50(%rsp)
mov    -0x7c(%rsp),%ecx
add    $0x1,%ecx
addq   $0x8,-0x48(%rsp)
addq   $0x8,-0x10(%rsp)
addq   $0x8,-0x18(%rsp)
addq   $0x8,-0x28(%rsp)
addq   $0x8,-0x30(%rsp)
addq   $0x8,-0x20(%rsp)
addq   $0x8,-0x38(%rsp)
addq   $0x8,-0x40(%rsp)
mov    %ecx,-0x7c(%rsp)
cmp    -0x70(%rsp),%ecx
je     1469 <tce_sort_4kg_4321__+0x369>
cmpl   $0x0,-0x78(%rsp)
jle    1210 <tce_sort_4kg_4321__+0x110>
xor    %edx,%edx
mov    -0x40(%rsp),%r10
mov    -0x38(%rsp),%r11
mov    -0x20(%rsp),%rbp
mov    -0x30(%rsp),%rdi
mov    -0x28(%rsp),%r12
mov    -0x18(%rsp),%r15
mov    -0x10(%rsp),%r8
mov    -0x48(%rsp),%r9
mov    -0x50(%rsp),%rcx
mov    %rcx,-0x68(%rsp)
jmp    1308 <tce_sort_4kg_4321__+0x208>
nopl   0x0(%rax,%rax,1)
mov    -0x70(%rsp),%rcx
mov    -0x68(%rsp),%rdx
lea    (%rdx,%rcx,8),%rdx
mov    %rdx,-0x68(%rsp)
mov    -0x60(%rsp),%edx
add    $0x1,%edx
mov    (%rsp),%rcx
mov    0x8(%rsp),%r9
add    %rcx,%r9
mov    0x10(%rsp),%r8
add    %rcx,%r8
mov    0x18(%rsp),%r15
add    %rcx,%r15
mov    0x20(%rsp),%r12
add    %rcx,%r12
mov    0x28(%rsp),%rdi
add    %rcx,%rdi
mov    0x30(%rsp),%rbp
add    %rcx,%rbp
mov    0x38(%rsp),%r11
add    %rcx,%r11
mov    0x40(%rsp),%r10
add    %rcx,%r10
cmp    -0x78(%rsp),%edx
je     1210 <tce_sort_4kg_4321__+0x110>
test   %r13d,%r13d
mov    %edx,-0x60(%rsp)
mov    %r10,0x40(%rsp)
mov    %r11,0x38(%rsp)
mov    %rbp,0x30(%rsp)
mov    %rdi,0x28(%rsp)
mov    %r12,0x20(%rsp)
mov    %r15,0x18(%rsp)
mov    %r8,0x10(%rsp)
mov    %r9,0x8(%rsp)
jle    12a0 <tce_sort_4kg_4321__+0x1a0>
xor    %r14d,%r14d
mov    -0x68(%rsp),%rcx
jmp    1383 <tce_sort_4kg_4321__+0x283>
nopw   0x0(%rax,%rax,1)
mov    0x60(%rsp),%rdx
lea    (%rcx,%rdx,8),%rcx
add    $0x1,%r14d
mov    0x58(%rsp),%rdx
add    %rdx,%r9
add    %rdx,%r8
add    %rdx,%r15
add    %rdx,%r12
add    %rdx,%rdi
add    %rdx,%rbp
add    %rdx,%r11
add    %rdx,%r10
cmp    %r13d,%r14d
je     12a0 <tce_sort_4kg_4321__+0x1a0>
cmpl   $0x0,0x68(%rsp)
jle    1350 <tce_sort_4kg_4321__+0x250>
cmpl   $0x7,-0x54(%rsp)
jae    13b0 <tce_sort_4kg_4321__+0x2b0>
mov    %rcx,%rdx
cmpl   $0x0,-0x74(%rsp)
jne    144c <tce_sort_4kg_4321__+0x34c>
jmp    1350 <tce_sort_4kg_4321__+0x250>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x8(%rsp),%rdx
add    %r9,%rdx
mov    -0x5c(%rsp),%ebx
xor    %r13d,%r13d
mov    0x50(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rdx,%r13,1),%xmm0
movsd  %xmm0,(%rsi)
movsd  (%r10,%r13,1),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  (%r11,%r13,1),%xmm0
movsd  %xmm0,0x10(%rsi)
movsd  0x0(%rbp,%r13,1),%xmm0
movsd  %xmm0,0x18(%rsi)
movsd  (%rdi,%r13,1),%xmm0
movsd  %xmm0,0x20(%rsi)
movsd  (%r12,%r13,1),%xmm0
movsd  %xmm0,0x28(%rsi)
movsd  (%r15,%r13,1),%xmm0
movsd  %xmm0,0x30(%rsi)
movsd  (%r8,%r13,1),%xmm0
movsd  %xmm0,0x38(%rsi)
add    $0x40,%rsi
add    %rax,%r13
add    $0xfffffff8,%ebx
jne    13d0 <tce_sort_4kg_4321__+0x2d0>
add    %r13,%rdx
mov    -0x58(%rsp),%r13d
mov    0x48(%rsp),%rax
cmpl   $0x0,-0x74(%rsp)
je     1350 <tce_sort_4kg_4321__+0x250>
mov    -0x74(%rsp),%ebx
movsd  (%rdx),%xmm0
movsd  %xmm0,(%rsi)
add    $0x8,%rsi
add    %rax,%rdx
add    $0xffffffff,%ebx
jne    1450 <tce_sort_4kg_4321__+0x350>
jmp    1350 <tce_sort_4kg_4321__+0x250>
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @tce_sort_4kg_4321__(double* %0, double* %1, i32* %2, i32* %3, i32* %4, i32* %5, double* %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca double*
%20 = alloca [4 x double*]
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
store double* %0, double** %8
store double* %1, double** %9
store i32* %2, i32** %10
store i32* %3, i32** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
store double* %6, double** %14
%25 = load double*, double** %9
store double* %25, double** %19
%26 = load i32*, i32** %10
%27 = load i32, i32* %26
store i32 %27, i32* %21
%28 = load i32*, i32** %11
%29 = load i32, i32* %28
store i32 %29, i32* %22
%30 = load i32*, i32** %12
%31 = load i32, i32* %30
store i32 %31, i32* %23
%32 = load i32*, i32** %13
%33 = load i32, i32* %32
store i32 %33, i32* %24
%34 = load double*, double** %8
%35 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 0
store double* %34, double** %35
%36 = load double*, double** %8
%37 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 1
store double* %36, double** %37
%38 = load double*, double** %8
%39 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 2
store double* %38, double** %39
%40 = load double*, double** %8
%41 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 3
store double* %40, double** %41
store i32 0, i32* %15
br label %42
42: ; preds = %112, %7
%43 = load i32, i32* %15
%44 = load i32, i32* %21
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %115
46: ; preds = %42
%47 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 3
%48 = load double*, double** %47
%49 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 2
store double* %48, double** %49
store i32 0, i32* %16
br label %50
50: ; preds = %105, %46
%51 = load i32, i32* %16
%52 = load i32, i32* %22
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %108
54: ; preds = %50
%55 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 2
%56 = load double*, double** %55
%57 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 1
store double* %56, double** %57
store i32 0, i32* %17
br label %58
58: ; preds = %96, %54
%59 = load i32, i32* %17
%60 = load i32, i32* %23
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %99
62: ; preds = %58
%63 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 1
%64 = load double*, double** %63
%65 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 0
store double* %64, double** %65
store i32 0, i32* %18
br label %66
66: ; preds = %85, %62
%67 = load i32, i32* %18
%68 = load i32, i32* %24
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %88
70: ; preds = %66
%71 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 0
%72 = load double*, double** %71
%73 = load double, double* %72
%74 = load double*, double** %19
%75 = getelementptr inbounds double, double* %74, i32 1
store double* %75, double** %19
store double %73, double* %74
%76 = load i32, i32* %21
%77 = load i32, i32* %22
%78 = mul nsw i32 %76, %77
%79 = load i32, i32* %23
%80 = mul nsw i32 %78, %79
%81 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 0
%82 = load double*, double** %81
%83 = sext i32 %80 to i64
%84 = getelementptr inbounds double, double* %82, i64 %83
store double* %84, double** %81
br label %85
85: ; preds = %70
%86 = load i32, i32* %18
%87 = add nsw i32 %86, 1
store i32 %87, i32* %18
br label %66
88: ; preds = %66
%89 = load i32, i32* %21
%90 = load i32, i32* %22
%91 = mul nsw i32 %89, %90
%92 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 1
%93 = load double*, double** %92
%94 = sext i32 %91 to i64
%95 = getelementptr inbounds double, double* %93, i64 %94
store double* %95, double** %92
br label %96
96: ; preds = %88
%97 = load i32, i32* %17
%98 = add nsw i32 %97, 1
store i32 %98, i32* %17
br label %58
99: ; preds = %58
%100 = load i32, i32* %21
%101 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 2
%102 = load double*, double** %101
%103 = sext i32 %100 to i64
%104 = getelementptr inbounds double, double* %102, i64 %103
store double* %104, double** %101
br label %105
105: ; preds = %99
%106 = load i32, i32* %16
%107 = add nsw i32 %106, 1
store i32 %107, i32* %16
br label %50
108: ; preds = %50
%109 = getelementptr inbounds [4 x double*], [4 x double*]* %20, i64 0, i64 3
%110 = load double*, double** %109
%111 = getelementptr inbounds double, double* %110, i64 1
store double* %111, double** %109
br label %112
112: ; preds = %108
%113 = load i32, i32* %15
%114 = add nsw i32 %113, 1
store i32 %114, i32* %15
br label %42
115: ; preds = %42
ret void
}

LLVM IR (-O2):
define void @tce_sort_4kg_4321__(double* nocapture %0, double* nocapture writeonly %1, i32* nocapture %2, i32* nocapture %3, i32* nocapture %4, i32* nocapture %5, double* nocapture readnone %6) {
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = icmp sgt i32 %8, 0
br i1 %12, label %13, label %98
13: ; preds = %7
%14 = icmp sgt i32 %9, 0
%15 = icmp sgt i32 %10, 0
%16 = icmp sgt i32 %11, 0
%17 = mul nsw i32 %9, %8
%18 = mul nsw i32 %17, %10
%19 = sext i32 %18 to i64
%20 = sext i32 %17 to i64
%21 = zext i32 %8 to i64
%22 = add i32 %11, -1
%23 = and i32 %11, 7
%24 = icmp ult i32 %22, 7
%25 = and i32 %11, -8
%26 = icmp eq i32 %23, 0
br label %27
27: ; preds = %13, %93
%28 = phi i32 [ 0, %13 ], [ %96, %93 ]
%29 = phi double* [ %0, %13 ], [ %95, %93 ]
%30 = phi double* [ %1, %13 ], [ %94, %93 ]
br i1 %14, label %31, label %93
31: ; preds = %27, %88
%32 = phi i32 [ %91, %88 ], [ 0, %27 ]
%33 = phi double* [ %90, %88 ], [ %29, %27 ]
%34 = phi double* [ %89, %88 ], [ %30, %27 ]
br i1 %15, label %35, label %88
35: ; preds = %31, %83
%36 = phi i32 [ %86, %83 ], [ 0, %31 ]
%37 = phi double* [ %85, %83 ], [ %33, %31 ]
%38 = phi double* [ %84, %83 ], [ %34, %31 ]
br i1 %16, label %39, label %83
39: ; preds = %35
br i1 %24, label %70, label %40
40: ; preds = %39, %40
%41 = phi double* [ %67, %40 ], [ %37, %39 ]
%42 = phi double* [ %66, %40 ], [ %38, %39 ]
%43 = phi i32 [ %68, %40 ], [ 0, %39 ]
%44 = load double, double* %41
%45 = getelementptr inbounds double, double* %42, i64 1
store double %44, double* %42
%46 = getelementptr inbounds double, double* %41, i64 %19
%47 = load double, double* %46
%48 = getelementptr inbounds double, double* %42, i64 2
store double %47, double* %45
%49 = getelementptr inbounds double, double* %46, i64 %19
%50 = load double, double* %49
%51 = getelementptr inbounds double, double* %42, i64 3
store double %50, double* %48
%52 = getelementptr inbounds double, double* %49, i64 %19
%53 = load double, double* %52
%54 = getelementptr inbounds double, double* %42, i64 4
store double %53, double* %51
%55 = getelementptr inbounds double, double* %52, i64 %19
%56 = load double, double* %55
%57 = getelementptr inbounds double, double* %42, i64 5
store double %56, double* %54
%58 = getelementptr inbounds double, double* %55, i64 %19
%59 = load double, double* %58
%60 = getelementptr inbounds double, double* %42, i64 6
store double %59, double* %57
%61 = getelementptr inbounds double, double* %58, i64 %19
%62 = load double, double* %61
%63 = getelementptr inbounds double, double* %42, i64 7
store double %62, double* %60
%64 = getelementptr inbounds double, double* %61, i64 %19
%65 = load double, double* %64
%66 = getelementptr inbounds double, double* %42, i64 8
store double %65, double* %63
%67 = getelementptr inbounds double, double* %64, i64 %19
%68 = add i32 %43, 8
%69 = icmp eq i32 %68, %25
br i1 %69, label %70, label %40
70: ; preds = %40, %39
%71 = phi double* [ undef, %39 ], [ %66, %40 ]
%72 = phi double* [ %37, %39 ], [ %67, %40 ]
%73 = phi double* [ %38, %39 ], [ %66, %40 ]
br i1 %26, label %83, label %74
74: ; preds = %70, %74
%75 = phi double* [ %80, %74 ], [ %72, %70 ]
%76 = phi double* [ %79, %74 ], [ %73, %70 ]
%77 = phi i32 [ %81, %74 ], [ 0, %70 ]
%78 = load double, double* %75
%79 = getelementptr inbounds double, double* %76, i64 1
store double %78, double* %76
%80 = getelementptr inbounds double, double* %75, i64 %19
%81 = add i32 %77, 1
%82 = icmp eq i32 %81, %23
br i1 %82, label %83, label %74
83: ; preds = %70, %74, %35
%84 = phi double* [ %38, %35 ], [ %71, %70 ], [ %79, %74 ]
%85 = getelementptr inbounds double, double* %37, i64 %20
%86 = add nuw nsw i32 %36, 1
%87 = icmp eq i32 %86, %10
br i1 %87, label %88, label %35
88: ; preds = %83, %31
%89 = phi double* [ %34, %31 ], [ %84, %83 ]
%90 = getelementptr inbounds double, double* %33, i64 %21
%91 = add nuw nsw i32 %32, 1
%92 = icmp eq i32 %91, %9
br i1 %92, label %93, label %31
93: ; preds = %88, %27
%94 = phi double* [ %30, %27 ], [ %89, %88 ]
%95 = getelementptr inbounds double, double* %29, i64 1
%96 = add nuw nsw i32 %28, 1
%97 = icmp eq i32 %96, %8
br i1 %97, label %98, label %27
98: ; preds = %93, %7
ret void
}