; LLVM IR from DeanoC/gfx_imagecompress :: src/amd_hdr_encode.ll (ZN10HDR_Encode15centerInPlace_dEPA4_fiPfi)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN10HDR_Encode15centerInPlace_dEPA4_fiPfi(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %44, %4
  %13 = load i32, ptr %9, align 4, !tbaa !9
  %14 = load i32, ptr %8, align 4, !tbaa !9
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %47

16:                                               ; preds = %12
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds float, ptr %17, i64 %19
  store float 0.000000e+00, ptr %20, align 4, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %40, %16
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %25, label %43

25:                                               ; preds = %21
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [4 x float], ptr %26, i64 %28
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [4 x float], ptr %29, i64 0, i64 %31
  %33 = load float, ptr %32, align 4, !tbaa !11
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds float, ptr %34, i64 %36
  %38 = load float, ptr %37, align 4, !tbaa !11
  %39 = fadd float %38, %33
  store float %39, ptr %37, align 4, !tbaa !11
  br label %40

40:                                               ; preds = %25
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %10, align 4, !tbaa !9
  br label %21, !llvm.loop !13

43:                                               ; preds = %21
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %9, align 4, !tbaa !9
  br label %12, !llvm.loop !15

47:                                               ; preds = %12
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 1, ptr %11, align 4
  br label %92

51:                                               ; preds = %47
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %88, %51
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %91

56:                                               ; preds = %52
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = sitofp i32 %57 to float
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds float, ptr %59, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = fdiv float %63, %58
  store float %64, ptr %62, align 4, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %84, %56
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %69, label %87

69:                                               ; preds = %65
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %70, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !11
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [4 x float], ptr %75, i64 %77
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [4 x float], ptr %78, i64 0, i64 %80
  %82 = load float, ptr %81, align 4, !tbaa !11
  %83 = fsub float %82, %74
  store float %83, ptr %81, align 4, !tbaa !11
  br label %84

84:                                               ; preds = %69
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %10, align 4, !tbaa !9
  br label %65, !llvm.loop !16

87:                                               ; preds = %65
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %9, align 4, !tbaa !9
  br label %52, !llvm.loop !17

91:                                               ; preds = %52
  store i32 0, ptr %11, align 4
  br label %92

92:                                               ; preds = %91, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  %93 = load i32, ptr %11, align 4
  switch i32 %93, label %95 [
    i32 0, label %94
    i32 1, label %94
  ]

94:                                               ; preds = %92, %92
  ret void

95:                                               ; preds = %92
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @_ZN10HDR_Encode15centerInPlace_dEPA4_fiPfi(ptr nocapture noundef %0, i32 noundef %1, ptr nocapture noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = icmp sgt i32 %3, 0
  br i1 %5, label %.lr.ph34, label %.loopexit

.lr.ph34:                                         ; preds = %4
  %6 = icmp sgt i32 %1, 0
  %wide.trip.count48 = zext nneg i32 %3 to i64
  br i1 %6, label %.lr.ph.us.preheader, label %.lr.ph34.split.preheader

.lr.ph34.split.preheader:                         ; preds = %.lr.ph34
  %7 = shl nuw nsw i64 %wide.trip.count48, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %2, i8 0, i64 %7, i1 false), !tbaa !5
  br label %._crit_edge35

.lr.ph.us.preheader:                              ; preds = %.lr.ph34
  %wide.trip.count = zext nneg i32 %1 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %8 = icmp ult i32 %1, 4
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv45 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next46, %._crit_edge.us ]
  %9 = getelementptr inbounds float, ptr %2, i64 %indvars.iv45
  store float 0.000000e+00, ptr %9, align 4, !tbaa !5
  br i1 %8, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %.lr.ph.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %10 = phi float [ %22, %.lr.ph.us.new ], [ 0.000000e+00, %.lr.ph.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %11 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv, i64 %indvars.iv45
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = fadd float %12, %10
  store float %13, ptr %9, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %14 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv.next, i64 %indvars.iv45
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = fadd float %15, %13
  store float %16, ptr %9, align 4, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %17 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv.next.1, i64 %indvars.iv45
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = fadd float %18, %16
  store float %19, ptr %9, align 4, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %20 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv.next.2, i64 %indvars.iv45
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = fadd float %21, %19
  store float %22, ptr %9, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !9

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph.us.new, %.lr.ph.us
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next.3, %.lr.ph.us.new ]
  %.unr = phi float [ 0.000000e+00, %.lr.ph.us ], [ %22, %.lr.ph.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.us.unr-lcssa ]
  %23 = phi float [ %26, %.epil.preheader ], [ %.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %24 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv.epil, i64 %indvars.iv45
  %25 = load float, ptr %24, align 4, !tbaa !5
  %26 = fadd float %25, %23
  store float %26, ptr %9, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !11

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond49.not = icmp eq i64 %indvars.iv.next46, %wide.trip.count48
  br i1 %exitcond49.not, label %._crit_edge35, label %.lr.ph.us, !llvm.loop !13

._crit_edge35:                                    ; preds = %._crit_edge.us, %.lr.ph34.split.preheader
  %.not = icmp ne i32 %1, 0
  %or.cond = and i1 %.not, %5
  br i1 %or.cond, label %.lr.ph38, label %.loopexit

.lr.ph38:                                         ; preds = %._crit_edge35
  %27 = sitofp i32 %1 to float
  %28 = icmp sgt i32 %1, 0
  %wide.trip.count63 = zext nneg i32 %3 to i64
  br i1 %28, label %.lr.ph.us39.preheader, label %.lr.ph38.split.preheader

.lr.ph38.split.preheader:                         ; preds = %.lr.ph38
  %min.iters.check = icmp ult i32 %3, 4
  br i1 %min.iters.check, label %.lr.ph38.split.preheader82, label %vector.ph

.lr.ph38.split.preheader82:                       ; preds = %middle.block, %.lr.ph38.split.preheader
  %indvars.iv50.ph = phi i64 [ 0, %.lr.ph38.split.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph38.split

vector.ph:                                        ; preds = %.lr.ph38.split.preheader
  %n.vec = and i64 %wide.trip.count48, 2147483644
  %broadcast.splatinsert = insertelement <4 x float> poison, float %27, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %29 = getelementptr inbounds float, ptr %2, i64 %index
  %wide.load = load <4 x float>, ptr %29, align 4, !tbaa !5
  %30 = fdiv <4 x float> %wide.load, %broadcast.splat
  store <4 x float> %30, ptr %29, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count48
  br i1 %cmp.n, label %.loopexit, label %.lr.ph38.split.preheader82

.lr.ph.us39.preheader:                            ; preds = %.lr.ph38
  %wide.trip.count58 = zext nneg i32 %1 to i64
  %32 = shl nuw nsw i64 %wide.trip.count58, 4
  %33 = shl nuw nsw i64 %wide.trip.count48, 2
  %34 = getelementptr i8, ptr %0, i64 %32
  %35 = getelementptr i8, ptr %34, i64 %33
  %scevgep = getelementptr i8, ptr %35, i64 -16
  %scevgep69 = getelementptr i8, ptr %2, i64 %33
  %min.iters.check72 = icmp ult i32 %1, 5
  %bound0 = icmp ugt ptr %scevgep69, %0
  %bound1 = icmp ugt ptr %scevgep, %2
  %found.conflict = and i1 %bound0, %bound1
  %n.mod.vf74 = and i64 %wide.trip.count58, 3
  %36 = icmp eq i64 %n.mod.vf74, 0
  %37 = select i1 %36, i64 4, i64 %n.mod.vf74
  %n.vec75 = sub nsw i64 %wide.trip.count58, %37
  %38 = add nsw i64 %wide.trip.count58, -1
  br label %.lr.ph.us39

.lr.ph.us39:                                      ; preds = %.lr.ph.us39.preheader, %._crit_edge.us40
  %indvars.iv60 = phi i64 [ 0, %.lr.ph.us39.preheader ], [ %indvars.iv.next61, %._crit_edge.us40 ]
  %39 = getelementptr inbounds float, ptr %2, i64 %indvars.iv60
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fdiv float %40, %27
  store float %41, ptr %39, align 4, !tbaa !5
  %brmerge = select i1 %min.iters.check72, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph71.preheader, label %vector.ph73

vector.ph73:                                      ; preds = %.lr.ph.us39
  %42 = load float, ptr %39, align 4, !tbaa !5, !alias.scope !17
  %broadcast.splatinsert79 = insertelement <4 x float> poison, float %42, i64 0
  %broadcast.splat80 = shufflevector <4 x float> %broadcast.splatinsert79, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body77

vector.body77:                                    ; preds = %vector.body77, %vector.ph73
  %index78 = phi i64 [ 0, %vector.ph73 ], [ %index.next81, %vector.body77 ]
  %43 = or disjoint i64 %index78, 1
  %44 = or disjoint i64 %index78, 2
  %45 = or disjoint i64 %index78, 3
  %46 = getelementptr inbounds [4 x float], ptr %0, i64 %index78, i64 %indvars.iv60
  %47 = getelementptr inbounds [4 x float], ptr %0, i64 %43, i64 %indvars.iv60
  %48 = getelementptr inbounds [4 x float], ptr %0, i64 %44, i64 %indvars.iv60
  %49 = getelementptr inbounds [4 x float], ptr %0, i64 %45, i64 %indvars.iv60
  %50 = load float, ptr %46, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %51 = load float, ptr %47, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %52 = load float, ptr %48, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %53 = load float, ptr %49, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %54 = insertelement <4 x float> poison, float %50, i64 0
  %55 = insertelement <4 x float> %54, float %51, i64 1
  %56 = insertelement <4 x float> %55, float %52, i64 2
  %57 = insertelement <4 x float> %56, float %53, i64 3
  %58 = fsub <4 x float> %57, %broadcast.splat80
  %59 = extractelement <4 x float> %58, i64 0
  store float %59, ptr %46, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %60 = extractelement <4 x float> %58, i64 1
  store float %60, ptr %47, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %61 = extractelement <4 x float> %58, i64 2
  store float %61, ptr %48, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %62 = extractelement <4 x float> %58, i64 3
  store float %62, ptr %49, align 4, !tbaa !5, !alias.scope !20, !noalias !17
  %index.next81 = add nuw i64 %index78, 4
  %63 = icmp eq i64 %index.next81, %n.vec75
  br i1 %63, label %scalar.ph71.preheader, label %vector.body77, !llvm.loop !22

scalar.ph71.preheader:                            ; preds = %vector.body77, %.lr.ph.us39
  %indvars.iv55.ph = phi i64 [ 0, %.lr.ph.us39 ], [ %n.vec75, %vector.body77 ]
  %64 = sub nsw i64 %wide.trip.count58, %indvars.iv55.ph
  %xtraiter84 = and i64 %64, 1
  %lcmp.mod85.not = icmp eq i64 %xtraiter84, 0
  br i1 %lcmp.mod85.not, label %scalar.ph71.prol.loopexit, label %scalar.ph71.prol

scalar.ph71.prol:                                 ; preds = %scalar.ph71.preheader
  %65 = load float, ptr %39, align 4, !tbaa !5
  %66 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv55.ph, i64 %indvars.iv60
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = fsub float %67, %65
  store float %68, ptr %66, align 4, !tbaa !5
  %indvars.iv.next56.prol = add nuw nsw i64 %indvars.iv55.ph, 1
  br label %scalar.ph71.prol.loopexit

scalar.ph71.prol.loopexit:                        ; preds = %scalar.ph71.prol, %scalar.ph71.preheader
  %indvars.iv55.unr = phi i64 [ %indvars.iv55.ph, %scalar.ph71.preheader ], [ %indvars.iv.next56.prol, %scalar.ph71.prol ]
  %69 = icmp eq i64 %indvars.iv55.ph, %38
  br i1 %69, label %._crit_edge.us40, label %scalar.ph71

scalar.ph71:                                      ; preds = %scalar.ph71.prol.loopexit, %scalar.ph71
  %indvars.iv55 = phi i64 [ %indvars.iv.next56.1, %scalar.ph71 ], [ %indvars.iv55.unr, %scalar.ph71.prol.loopexit ]
  %70 = load float, ptr %39, align 4, !tbaa !5
  %71 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv55, i64 %indvars.iv60
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = fsub float %72, %70
  store float %73, ptr %71, align 4, !tbaa !5
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %74 = load float, ptr %39, align 4, !tbaa !5
  %75 = getelementptr inbounds [4 x float], ptr %0, i64 %indvars.iv.next56, i64 %indvars.iv60
  %76 = load float, ptr %75, align 4, !tbaa !5
  %77 = fsub float %76, %74
  store float %77, ptr %75, align 4, !tbaa !5
  %indvars.iv.next56.1 = add nuw nsw i64 %indvars.iv55, 2
  %exitcond59.not.1 = icmp eq i64 %indvars.iv.next56.1, %wide.trip.count58
  br i1 %exitcond59.not.1, label %._crit_edge.us40, label %scalar.ph71, !llvm.loop !23

._crit_edge.us40:                                 ; preds = %scalar.ph71, %scalar.ph71.prol.loopexit
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next61, %wide.trip.count63
  br i1 %exitcond64.not, label %.loopexit, label %.lr.ph.us39, !llvm.loop !24

.lr.ph38.split:                                   ; preds = %.lr.ph38.split.preheader82, %.lr.ph38.split
  %indvars.iv50 = phi i64 [ %indvars.iv.next51, %.lr.ph38.split ], [ %indvars.iv50.ph, %.lr.ph38.split.preheader82 ]
  %78 = getelementptr inbounds float, ptr %2, i64 %indvars.iv50
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = fdiv float %79, %27
  store float %80, ptr %78, align 4, !tbaa !5
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond54.not = icmp eq i64 %indvars.iv.next51, %wide.trip.count63
  br i1 %exitcond54.not, label %.loopexit, label %.lr.ph38.split, !llvm.loop !25

.loopexit:                                        ; preds = %.lr.ph38.split, %._crit_edge.us40, %middle.block, %4, %._crit_edge35
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

attributes #0 = { mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = !{!18}
!18 = distinct !{!18, !19}
!19 = distinct !{!19, !"LVerDomain"}
!20 = !{!21}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !10, !15, !16}
!23 = distinct !{!23, !10, !15}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10, !16, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass