; LLVM IR from ermig1979/Simd :: src/Test/TestRandom.ll (ZN4Test13FillRandom32fERN4Simd4ViewINS0_9AllocatorEEEff)

; 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"

%"struct.Simd::View" = type <{ i64, i64, i64, i32, [4 x i8], ptr, i8, [7 x i8] }>

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Test13FillRandom32fERN4Simd4ViewINS0_9AllocatorEEEff = external hidden unnamed_addr constant [47 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Test6Rand8uEv() #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Test13FillRandom32fERN4Simd4ViewINS0_9AllocatorEEEff(ptr noundef nonnull align 8 dereferenceable(41) %0, float noundef %1, float noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i8, align 1
  %8 = alloca float, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.Simd::View", ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = icmp eq i32 %21, 8
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  br label %26

24:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 321, ptr noundef @__PRETTY_FUNCTION__._ZN4Test13FillRandom32fERN4Simd4ViewINS0_9AllocatorEEEff) #6
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call noundef i64 @_ZNK4Simd4ViewINS_9AllocatorEE4AreaEv(ptr noundef nonnull align 8 dereferenceable(41) %27)
  %29 = icmp ugt i64 %28, 100000
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %7, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %31 = load float, ptr %6, align 4, !tbaa !9
  %32 = load float, ptr %5, align 4, !tbaa !9
  %33 = fsub float %31, %32
  %34 = fdiv float %33, 2.550000e+02
  store float %34, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !17
  br label %35

35:                                               ; preds = %117, %26
  %36 = load i64, ptr %9, align 8, !tbaa !17
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.Simd::View", ptr %37, i32 0, i32 1
  %39 = load i64, ptr %38, align 8, !tbaa !18
  %40 = icmp ult i64 %36, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %35
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %120

42:                                               ; preds = %35
  %43 = load i8, ptr %7, align 1, !tbaa !16, !range !19, !noundef !20
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %92

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !17
  br label %46

46:                                               ; preds = %88, %45
  %47 = load i64, ptr %11, align 8, !tbaa !17
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.Simd::View", ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !21
  %51 = icmp ult i64 %47, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %46
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %91

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 32767, ptr %13, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.Simd::View", ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !21
  %57 = load i64, ptr %11, align 8, !tbaa !17
  %58 = sub i64 %56, %57
  store i64 %58, ptr %14, align 8, !tbaa !17
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %60 = load i64, ptr %59, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  store i64 %60, ptr %12, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i64, ptr %11, align 8, !tbaa !17
  %63 = load i64, ptr %9, align 8, !tbaa !17
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIfEERT_mm(ptr noundef nonnull align 8 dereferenceable(41) %61, i64 noundef %62, i64 noundef %63)
  store ptr %64, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %65 = call noundef ptr @_ZN4Test6Rand8uEv()
  store ptr %65, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !17
  br label %66

66:                                               ; preds = %84, %53
  %67 = load i64, ptr %17, align 8, !tbaa !17
  %68 = load i64, ptr %12, align 8, !tbaa !17
  %69 = icmp ult i64 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %87

71:                                               ; preds = %66
  %72 = load float, ptr %5, align 4, !tbaa !9
  %73 = load float, ptr %8, align 4, !tbaa !9
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = load i64, ptr %17, align 8, !tbaa !17
  %76 = getelementptr inbounds i8, ptr %74, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !22
  %78 = zext i8 %77 to i32
  %79 = sitofp i32 %78 to float
  %80 = call float @llvm.fmuladd.f32(float %73, float %79, float %72)
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = load i64, ptr %17, align 8, !tbaa !17
  %83 = getelementptr inbounds float, ptr %81, i64 %82
  store float %80, ptr %83, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %71
  %85 = load i64, ptr %17, align 8, !tbaa !17
  %86 = add i64 %85, 1
  store i64 %86, ptr %17, align 8, !tbaa !17
  br label %66, !llvm.loop !23

87:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %11, align 8, !tbaa !17
  %90 = add i64 %89, 32767
  store i64 %90, ptr %11, align 8, !tbaa !17
  br label %46, !llvm.loop !25

91:                                               ; preds = %52
  br label %116

92:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !17
  br label %93

93:                                               ; preds = %112, %92
  %94 = load i64, ptr %18, align 8, !tbaa !17
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.Simd::View", ptr %95, i32 0, i32 0
  %97 = load i64, ptr %96, align 8, !tbaa !21
  %98 = icmp ult i64 %94, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %93
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %115

100:                                              ; preds = %93
  %101 = load float, ptr %5, align 4, !tbaa !9
  %102 = load float, ptr %6, align 4, !tbaa !9
  %103 = load float, ptr %5, align 4, !tbaa !9
  %104 = fsub float %102, %103
  %105 = call noundef double @_ZN4Test6RandomEv()
  %106 = fptrunc double %105 to float
  %107 = call float @llvm.fmuladd.f32(float %104, float %106, float %101)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load i64, ptr %18, align 8, !tbaa !17
  %110 = load i64, ptr %9, align 8, !tbaa !17
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIfEERT_mm(ptr noundef nonnull align 8 dereferenceable(41) %108, i64 noundef %109, i64 noundef %110)
  store float %107, ptr %111, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %100
  %113 = load i64, ptr %18, align 8, !tbaa !17
  %114 = add i64 %113, 1
  store i64 %114, ptr %18, align 8, !tbaa !17
  br label %93, !llvm.loop !26

115:                                              ; preds = %99
  br label %116

116:                                              ; preds = %115, %91
  br label %117

117:                                              ; preds = %116
  %118 = load i64, ptr %9, align 8, !tbaa !17
  %119 = add i64 %118, 1
  store i64 %119, ptr %9, align 8, !tbaa !17
  br label %35, !llvm.loop !27

120:                                              ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4Simd4ViewINS_9AllocatorEE4AreaEv(ptr noundef nonnull align 8 dereferenceable(41)) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIfEERT_mm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4Test6RandomEv() #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { alwaysinline 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 #3 = { inlinehint 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 #4 = { mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !14, i64 24}
!12 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEEE", !13, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !6, i64 32, !15, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEE6FormatE", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !13, i64 8}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!12, !13, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}


; 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"

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Test13FillRandom32fERN4Simd4ViewINS0_9AllocatorEEEff = external hidden unnamed_addr constant [47 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Test6Rand8uEv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Test13FillRandom32fERN4Simd4ViewINS0_9AllocatorEEEff(ptr noundef nonnull align 8 dereferenceable(41) %0, float noundef %1, float noundef %2) local_unnamed_addr #4 {
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i32 %7, 8
  br i1 %8, label %10, label %9

9:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 321, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4Test13FillRandom32fERN4Simd4ViewINS0_9AllocatorEEEff) #7
  unreachable

10:                                               ; preds = %3
  %11 = tail call noundef i64 @_ZNK4Simd4ViewINS_9AllocatorEE4AreaEv(ptr noundef nonnull align 8 dereferenceable(41) %0)
  %12 = fsub float %2, %1
  %13 = fdiv float %12, 2.550000e+02
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load i64, ptr %14, align 8, !tbaa !13
  %.not = icmp eq i64 %15, 0
  br i1 %.not, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %10
  %16 = icmp ugt i64 %11, 100000
  %17 = load i64, ptr %0, align 8, !tbaa !14
  %.not51 = icmp eq i64 %17, 0
  br i1 %16, label %.lr.ph46.split.us, label %.lr.ph46.split

.lr.ph46.split.us:                                ; preds = %.lr.ph46
  br i1 %.not51, label %._crit_edge47, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.lr.ph46.split.us
  %broadcast.splatinsert = insertelement <4 x float> poison, float %13, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert64 = insertelement <4 x float> poison, float %1, i64 0
  %broadcast.splat65 = shufflevector <4 x float> %broadcast.splatinsert64, <4 x float> poison, <4 x i32> zeroinitializer
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %.loopexit.us
  %18 = phi i64 [ %58, %.loopexit.us ], [ %15, %.preheader.us.preheader ]
  %19 = phi i64 [ %59, %.loopexit.us ], [ %17, %.preheader.us.preheader ]
  %.03443.us = phi i64 [ %60, %.loopexit.us ], [ 0, %.preheader.us.preheader ]
  %.not52 = icmp eq i64 %19, 0
  br i1 %.not52, label %.loopexit.us, label %.lr.ph42.us

.lr.ph42.us:                                      ; preds = %.preheader.us, %._crit_edge.us
  %20 = phi i64 [ %44, %._crit_edge.us ], [ %19, %.preheader.us ]
  %.03541.us = phi i64 [ %43, %._crit_edge.us ], [ 0, %.preheader.us ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store i64 32767, ptr %4, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %21 = sub i64 %20, %.03541.us
  store i64 %21, ptr %5, align 8, !tbaa !15
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %23 = load i64, ptr %22, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIfEERT_mm(ptr noundef nonnull align 8 dereferenceable(41) %0, i64 noundef %.03541.us, i64 noundef %.03443.us)
  %25 = call noundef ptr @_ZN4Test6Rand8uEv()
  %.not53 = icmp eq i64 %23, 0
  br i1 %.not53, label %._crit_edge.us, label %.lr.ph40.us.preheader

.lr.ph40.us.preheader:                            ; preds = %.lr.ph42.us
  %min.iters.check = icmp ult i64 %23, 8
  br i1 %min.iters.check, label %.lr.ph40.us.preheader66, label %vector.memcheck

.lr.ph40.us.preheader66:                          ; preds = %middle.block, %vector.memcheck, %.lr.ph40.us.preheader
  %.03339.us.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph40.us.preheader ], [ %n.vec, %middle.block ]
  %.neg = or disjoint i64 %.03339.us.ph, 1
  %xtraiter = and i64 %23, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph40.us.prol.loopexit, label %.lr.ph40.us.prol

.lr.ph40.us.prol:                                 ; preds = %.lr.ph40.us.preheader66
  %26 = getelementptr inbounds i8, ptr %25, i64 %.03339.us.ph
  %27 = load i8, ptr %26, align 1, !tbaa !16
  %28 = uitofp i8 %27 to float
  %29 = call float @llvm.fmuladd.f32(float %13, float %28, float %1)
  %30 = getelementptr inbounds float, ptr %24, i64 %.03339.us.ph
  store float %29, ptr %30, align 4, !tbaa !17
  %31 = or disjoint i64 %.03339.us.ph, 1
  br label %.lr.ph40.us.prol.loopexit

.lr.ph40.us.prol.loopexit:                        ; preds = %.lr.ph40.us.prol, %.lr.ph40.us.preheader66
  %.03339.us.unr = phi i64 [ %.03339.us.ph, %.lr.ph40.us.preheader66 ], [ %31, %.lr.ph40.us.prol ]
  %32 = icmp eq i64 %23, %.neg
  br i1 %32, label %._crit_edge.us, label %.lr.ph40.us

vector.memcheck:                                  ; preds = %.lr.ph40.us.preheader
  %33 = shl i64 %23, 2
  %scevgep = getelementptr i8, ptr %24, i64 %33
  %scevgep62 = getelementptr i8, ptr %25, i64 %23
  %bound0 = icmp ult ptr %24, %scevgep62
  %bound1 = icmp ult ptr %25, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph40.us.preheader66, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %23, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %34 = getelementptr inbounds i8, ptr %25, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  %wide.load = load <4 x i8>, ptr %34, align 1, !tbaa !16, !alias.scope !19
  %wide.load63 = load <4 x i8>, ptr %35, align 1, !tbaa !16, !alias.scope !19
  %36 = uitofp <4 x i8> %wide.load to <4 x float>
  %37 = uitofp <4 x i8> %wide.load63 to <4 x float>
  %38 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %36, <4 x float> %broadcast.splat65)
  %39 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %37, <4 x float> %broadcast.splat65)
  %40 = getelementptr inbounds float, ptr %24, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  store <4 x float> %38, ptr %40, align 4, !tbaa !17, !alias.scope !22, !noalias !19
  store <4 x float> %39, ptr %41, align 4, !tbaa !17, !alias.scope !22, !noalias !19
  %index.next = add nuw i64 %index, 8
  %42 = icmp eq i64 %index.next, %n.vec
  br i1 %42, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %23, %n.vec
  br i1 %cmp.n, label %._crit_edge.us, label %.lr.ph40.us.preheader66

._crit_edge.us:                                   ; preds = %.lr.ph40.us.prol.loopexit, %.lr.ph40.us, %middle.block, %.lr.ph42.us
  %43 = add i64 %.03541.us, 32767
  %44 = load i64, ptr %0, align 8, !tbaa !14
  %45 = icmp ult i64 %43, %44
  br i1 %45, label %.lr.ph42.us, label %.loopexit.us.loopexit, !llvm.loop !28

.lr.ph40.us:                                      ; preds = %.lr.ph40.us.prol.loopexit, %.lr.ph40.us
  %.03339.us = phi i64 [ %57, %.lr.ph40.us ], [ %.03339.us.unr, %.lr.ph40.us.prol.loopexit ]
  %46 = getelementptr inbounds i8, ptr %25, i64 %.03339.us
  %47 = load i8, ptr %46, align 1, !tbaa !16
  %48 = uitofp i8 %47 to float
  %49 = call float @llvm.fmuladd.f32(float %13, float %48, float %1)
  %50 = getelementptr inbounds float, ptr %24, i64 %.03339.us
  store float %49, ptr %50, align 4, !tbaa !17
  %51 = add nuw i64 %.03339.us, 1
  %52 = getelementptr inbounds i8, ptr %25, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !16
  %54 = uitofp i8 %53 to float
  %55 = call float @llvm.fmuladd.f32(float %13, float %54, float %1)
  %56 = getelementptr inbounds float, ptr %24, i64 %51
  store float %55, ptr %56, align 4, !tbaa !17
  %57 = add nuw i64 %.03339.us, 2
  %exitcond.not.1 = icmp eq i64 %57, %23
  br i1 %exitcond.not.1, label %._crit_edge.us, label %.lr.ph40.us, !llvm.loop !29

.loopexit.us.loopexit:                            ; preds = %._crit_edge.us
  %.pre57 = load i64, ptr %14, align 8, !tbaa !13
  br label %.loopexit.us

.loopexit.us:                                     ; preds = %.loopexit.us.loopexit, %.preheader.us
  %58 = phi i64 [ %.pre57, %.loopexit.us.loopexit ], [ %18, %.preheader.us ]
  %59 = phi i64 [ %44, %.loopexit.us.loopexit ], [ 0, %.preheader.us ]
  %60 = add nuw i64 %.03443.us, 1
  %61 = icmp ult i64 %60, %58
  br i1 %61, label %.preheader.us, label %._crit_edge47, !llvm.loop !30

.lr.ph46.split:                                   ; preds = %.lr.ph46
  br i1 %.not51, label %._crit_edge47, label %.preheader36

._crit_edge47:                                    ; preds = %.loopexit37, %.loopexit.us, %.lr.ph46.split, %.lr.ph46.split.us, %10
  ret void

.preheader36:                                     ; preds = %.lr.ph46.split, %.loopexit37
  %62 = phi i64 [ %71, %.loopexit37 ], [ %15, %.lr.ph46.split ]
  %63 = phi i64 [ %72, %.loopexit37 ], [ 1, %.lr.ph46.split ]
  %.03443 = phi i64 [ %73, %.loopexit37 ], [ 0, %.lr.ph46.split ]
  %.not50 = icmp eq i64 %63, 0
  br i1 %.not50, label %.loopexit37, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader36, %.lr.ph
  %.038 = phi i64 [ %68, %.lr.ph ], [ 0, %.preheader36 ]
  %64 = tail call noundef double @_ZN4Test6RandomEv()
  %65 = fptrunc double %64 to float
  %66 = tail call float @llvm.fmuladd.f32(float %12, float %65, float %1)
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIfEERT_mm(ptr noundef nonnull align 8 dereferenceable(41) %0, i64 noundef %.038, i64 noundef %.03443)
  store float %66, ptr %67, align 4, !tbaa !17
  %68 = add nuw i64 %.038, 1
  %69 = load i64, ptr %0, align 8, !tbaa !14
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %.lr.ph, label %.loopexit37.loopexit, !llvm.loop !32

.loopexit37.loopexit:                             ; preds = %.lr.ph
  %.pre = load i64, ptr %14, align 8, !tbaa !13
  br label %.loopexit37

.loopexit37:                                      ; preds = %.loopexit37.loopexit, %.preheader36
  %71 = phi i64 [ %.pre, %.loopexit37.loopexit ], [ %62, %.preheader36 ]
  %72 = phi i64 [ %69, %.loopexit37.loopexit ], [ 0, %.preheader36 ]
  %73 = add nuw i64 %.03443, 1
  %74 = icmp ult i64 %73, %71
  br i1 %74, label %.preheader36, label %._crit_edge47, !llvm.loop !33
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4Simd4ViewINS_9AllocatorEE4AreaEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd4ViewINS_9AllocatorEE2AtIfEERT_mm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4Test6RandomEv() local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { alwaysinline 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 #3 = { inlinehint 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 #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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, !10, i64 24}
!6 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEEE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 32, !12, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEE6FormatE", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = !{!23}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25, !26}
!30 = distinct !{!30, !25, !31}
!31 = !{!"llvm.loop.unswitch.partial.disable"}
!32 = distinct !{!32, !25}
!33 = distinct !{!33, !25, !31}


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