; LLVM IR from PaddlePaddle/Paddle-Lite :: lite/backends/x86/math/clip.ll (ZN6paddle4lite3x864math4clipIfEEvPKT_PS4_iS4_S4_)

; 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: mustprogress uwtable
define dso_local void @_ZN6paddle4lite3x864math4clipIfEEvPKT_PS4_iS4_S4_(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3, float noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca <4 x float>, align 16
  %18 = alloca <4 x float>, align 16
  %19 = alloca i32, align 4
  %20 = alloca <4 x float>, align 16
  %21 = alloca <4 x float>, align 16
  %22 = alloca <4 x float>, align 16
  %23 = alloca <4 x float>, align 16
  %24 = alloca i32, align 4
  %25 = alloca <4 x float>, align 16
  %26 = alloca i32, align 4
  %27 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !11
  store float %4, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = ashr i32 %28, 4
  store i32 %29, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = srem i32 %30, 16
  store i32 %31, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = ashr i32 %32, 2
  store i32 %33, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = and i32 %34, 3
  store i32 %35, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %36, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %37, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %38 = load float, ptr %9, align 4, !tbaa !11
  %39 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %38)
  store <4 x float> %39, ptr %17, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %40 = load float, ptr %10, align 4, !tbaa !11
  %41 = call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %40)
  store <4 x float> %41, ptr %18, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %94, %5
  %43 = load i32, ptr %19, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %97

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef %48)
  store <4 x float> %49, ptr %20, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = getelementptr inbounds float, ptr %50, i64 4
  %52 = call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef %51)
  store <4 x float> %52, ptr %21, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #3
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i64 8
  %55 = call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef %54)
  store <4 x float> %55, ptr %22, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #3
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  %57 = getelementptr inbounds float, ptr %56, i64 12
  %58 = call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef %57)
  store <4 x float> %58, ptr %23, align 16, !tbaa !13
  %59 = load <4 x float>, ptr %20, align 16, !tbaa !13
  %60 = load <4 x float>, ptr %18, align 16, !tbaa !13
  %61 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %59, <4 x float> noundef %60)
  %62 = load <4 x float>, ptr %17, align 16, !tbaa !13
  %63 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %61, <4 x float> noundef %62)
  store <4 x float> %63, ptr %20, align 16, !tbaa !13
  %64 = load <4 x float>, ptr %21, align 16, !tbaa !13
  %65 = load <4 x float>, ptr %18, align 16, !tbaa !13
  %66 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %64, <4 x float> noundef %65)
  %67 = load <4 x float>, ptr %17, align 16, !tbaa !13
  %68 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %66, <4 x float> noundef %67)
  store <4 x float> %68, ptr %21, align 16, !tbaa !13
  %69 = load <4 x float>, ptr %22, align 16, !tbaa !13
  %70 = load <4 x float>, ptr %18, align 16, !tbaa !13
  %71 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %69, <4 x float> noundef %70)
  %72 = load <4 x float>, ptr %17, align 16, !tbaa !13
  %73 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %71, <4 x float> noundef %72)
  store <4 x float> %73, ptr %22, align 16, !tbaa !13
  %74 = load <4 x float>, ptr %23, align 16, !tbaa !13
  %75 = load <4 x float>, ptr %18, align 16, !tbaa !13
  %76 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %74, <4 x float> noundef %75)
  %77 = load <4 x float>, ptr %17, align 16, !tbaa !13
  %78 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %76, <4 x float> noundef %77)
  store <4 x float> %78, ptr %23, align 16, !tbaa !13
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = load <4 x float>, ptr %20, align 16, !tbaa !13
  call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %79, <4 x float> noundef %80)
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = getelementptr inbounds float, ptr %81, i64 4
  %83 = load <4 x float>, ptr %21, align 16, !tbaa !13
  call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %82, <4 x float> noundef %83)
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = getelementptr inbounds float, ptr %84, i64 8
  %86 = load <4 x float>, ptr %22, align 16, !tbaa !13
  call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %85, <4 x float> noundef %86)
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = getelementptr inbounds float, ptr %87, i64 12
  %89 = load <4 x float>, ptr %23, align 16, !tbaa !13
  call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %88, <4 x float> noundef %89)
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = getelementptr inbounds float, ptr %90, i64 16
  store ptr %91, ptr %16, align 8, !tbaa !5
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = getelementptr inbounds float, ptr %92, i64 16
  store ptr %93, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  br label %94

94:                                               ; preds = %47
  %95 = load i32, ptr %19, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %19, align 4, !tbaa !9
  br label %42, !llvm.loop !14

97:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %117, %97
  %99 = load i32, ptr %24, align 4, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  br label %120

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef %104)
  store <4 x float> %105, ptr %25, align 16, !tbaa !13
  %106 = load <4 x float>, ptr %25, align 16, !tbaa !13
  %107 = load <4 x float>, ptr %18, align 16, !tbaa !13
  %108 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %106, <4 x float> noundef %107)
  %109 = load <4 x float>, ptr %17, align 16, !tbaa !13
  %110 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %108, <4 x float> noundef %109)
  store <4 x float> %110, ptr %25, align 16, !tbaa !13
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = load <4 x float>, ptr %25, align 16, !tbaa !13
  call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %111, <4 x float> noundef %112)
  %113 = load ptr, ptr %16, align 8, !tbaa !5
  %114 = getelementptr inbounds float, ptr %113, i64 4
  store ptr %114, ptr %16, align 8, !tbaa !5
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds float, ptr %115, i64 4
  store ptr %116, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  br label %117

117:                                              ; preds = %103
  %118 = load i32, ptr %24, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %24, align 4, !tbaa !9
  br label %98, !llvm.loop !16

120:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %155, %120
  %122 = load i32, ptr %26, align 4, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %158

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = getelementptr inbounds float, ptr %127, i64 0
  %129 = load float, ptr %128, align 4, !tbaa !11
  %130 = load float, ptr %10, align 4, !tbaa !11
  %131 = fcmp ogt float %129, %130
  br i1 %131, label %132, label %136

132:                                              ; preds = %126
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = getelementptr inbounds float, ptr %133, i64 0
  %135 = load float, ptr %134, align 4, !tbaa !11
  br label %138

136:                                              ; preds = %126
  %137 = load float, ptr %10, align 4, !tbaa !11
  br label %138

138:                                              ; preds = %136, %132
  %139 = phi float [ %135, %132 ], [ %137, %136 ]
  store float %139, ptr %27, align 4, !tbaa !11
  %140 = load float, ptr %27, align 4, !tbaa !11
  %141 = load float, ptr %9, align 4, !tbaa !11
  %142 = fcmp olt float %140, %141
  br i1 %142, label %143, label %145

143:                                              ; preds = %138
  %144 = load float, ptr %27, align 4, !tbaa !11
  br label %147

145:                                              ; preds = %138
  %146 = load float, ptr %9, align 4, !tbaa !11
  br label %147

147:                                              ; preds = %145, %143
  %148 = phi float [ %144, %143 ], [ %146, %145 ]
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = getelementptr inbounds float, ptr %149, i64 0
  store float %148, ptr %150, align 4, !tbaa !11
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = getelementptr inbounds float, ptr %151, i32 1
  store ptr %152, ptr %16, align 8, !tbaa !5
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds float, ptr %153, i32 1
  store ptr %154, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %155

155:                                              ; preds = %147
  %156 = load i32, ptr %26, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %26, align 4, !tbaa !9
  br label %121, !llvm.loop !17

158:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  ret void
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL11_mm_set1_psf(float noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef, <4 x float> noundef) #2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="128" "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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


; 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 nounwind uwtable
define dso_local void @_ZN6paddle4lite3x864math4clipIfEEvPKT_PS4_iS4_S4_(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3, float noundef %4) local_unnamed_addr #0 {
  %6 = ashr i32 %2, 4
  %7 = srem i32 %2, 16
  %8 = ashr i32 %7, 2
  %9 = and i32 %7, 3
  %10 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %3)
  %11 = tail call noundef <4 x float> @_ZL11_mm_set1_psf(float noundef %4)
  %12 = icmp sgt i32 %6, 0
  br i1 %12, label %.lr.ph, label %.preheader69

.preheader69:                                     ; preds = %.lr.ph, %5
  %.062.lcssa = phi ptr [ %0, %5 ], [ %32, %.lr.ph ]
  %.0.lcssa = phi ptr [ %1, %5 ], [ %33, %.lr.ph ]
  %13 = icmp sgt i32 %8, 0
  br i1 %13, label %.lr.ph77, label %.preheader

.lr.ph:                                           ; preds = %5, %.lr.ph
  %.072 = phi ptr [ %33, %.lr.ph ], [ %1, %5 ]
  %.06271 = phi ptr [ %32, %.lr.ph ], [ %0, %5 ]
  %.06670 = phi i32 [ %34, %.lr.ph ], [ 0, %5 ]
  %14 = tail call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef %.06271)
  %15 = getelementptr inbounds i8, ptr %.06271, i64 16
  %16 = tail call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef nonnull %15)
  %17 = getelementptr inbounds i8, ptr %.06271, i64 32
  %18 = tail call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef nonnull %17)
  %19 = getelementptr inbounds i8, ptr %.06271, i64 48
  %20 = tail call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef nonnull %19)
  %21 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %14, <4 x float> noundef %11)
  %22 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %21, <4 x float> noundef %10)
  %23 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %16, <4 x float> noundef %11)
  %24 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %23, <4 x float> noundef %10)
  %25 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %18, <4 x float> noundef %11)
  %26 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %25, <4 x float> noundef %10)
  %27 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %20, <4 x float> noundef %11)
  %28 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %27, <4 x float> noundef %10)
  tail call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %.072, <4 x float> noundef %22)
  %29 = getelementptr inbounds i8, ptr %.072, i64 16
  tail call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef nonnull %29, <4 x float> noundef %24)
  %30 = getelementptr inbounds i8, ptr %.072, i64 32
  tail call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef nonnull %30, <4 x float> noundef %26)
  %31 = getelementptr inbounds i8, ptr %.072, i64 48
  tail call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef nonnull %31, <4 x float> noundef %28)
  %32 = getelementptr inbounds i8, ptr %.06271, i64 64
  %33 = getelementptr inbounds i8, ptr %.072, i64 64
  %34 = add nuw nsw i32 %.06670, 1
  %exitcond.not = icmp eq i32 %34, %6
  br i1 %exitcond.not, label %.preheader69, label %.lr.ph, !llvm.loop !5

.preheader:                                       ; preds = %.lr.ph77, %.preheader69
  %.163.lcssa = phi ptr [ %.062.lcssa, %.preheader69 ], [ %38, %.lr.ph77 ]
  %.1.lcssa = phi ptr [ %.0.lcssa, %.preheader69 ], [ %39, %.lr.ph77 ]
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph83

.lr.ph77:                                         ; preds = %.preheader69, %.lr.ph77
  %.176 = phi ptr [ %39, %.lr.ph77 ], [ %.0.lcssa, %.preheader69 ]
  %.16375 = phi ptr [ %38, %.lr.ph77 ], [ %.062.lcssa, %.preheader69 ]
  %.06574 = phi i32 [ %40, %.lr.ph77 ], [ 0, %.preheader69 ]
  %35 = tail call noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef %.16375)
  %36 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %35, <4 x float> noundef %11)
  %37 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %36, <4 x float> noundef %10)
  tail call void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef %.176, <4 x float> noundef %37)
  %38 = getelementptr inbounds i8, ptr %.16375, i64 16
  %39 = getelementptr inbounds i8, ptr %.176, i64 16
  %40 = add nuw nsw i32 %.06574, 1
  %exitcond87.not = icmp eq i32 %40, %8
  br i1 %exitcond87.not, label %.preheader, label %.lr.ph77, !llvm.loop !7

._crit_edge:                                      ; preds = %.lr.ph83, %.lr.ph83.1, %.lr.ph83.2, %.preheader
  ret void

.lr.ph83:                                         ; preds = %.preheader
  %41 = load float, ptr %.163.lcssa, align 4, !tbaa !8
  %42 = fcmp ogt float %41, %4
  %. = select i1 %42, float %41, float %4
  %43 = fcmp olt float %., %3
  %44 = select i1 %43, float %., float %3
  store float %44, ptr %.1.lcssa, align 4, !tbaa !8
  %exitcond88.not = icmp eq i32 %9, 1
  br i1 %exitcond88.not, label %._crit_edge, label %.lr.ph83.1, !llvm.loop !12

.lr.ph83.1:                                       ; preds = %.lr.ph83
  %45 = getelementptr inbounds i8, ptr %.1.lcssa, i64 4
  %46 = getelementptr inbounds i8, ptr %.163.lcssa, i64 4
  %47 = load float, ptr %46, align 4, !tbaa !8
  %48 = fcmp ogt float %47, %4
  %..1 = select i1 %48, float %47, float %4
  %49 = fcmp olt float %..1, %3
  %50 = select i1 %49, float %..1, float %3
  store float %50, ptr %45, align 4, !tbaa !8
  %exitcond88.not.1 = icmp eq i32 %9, 2
  br i1 %exitcond88.not.1, label %._crit_edge, label %.lr.ph83.2, !llvm.loop !12

.lr.ph83.2:                                       ; preds = %.lr.ph83.1
  %51 = getelementptr inbounds i8, ptr %.1.lcssa, i64 8
  %52 = getelementptr inbounds i8, ptr %.163.lcssa, i64 8
  %53 = load float, ptr %52, align 4, !tbaa !8
  %54 = fcmp ogt float %53, %4
  %..2 = select i1 %54, float %53, float %4
  %55 = fcmp olt float %..2, %3
  %56 = select i1 %55, float %..2, float %3
  store float %56, ptr %51, align 4, !tbaa !8
  br label %._crit_edge
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL11_mm_set1_psf(float noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL12_mm_loadu_psPKf(ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL13_mm_storeu_psPfDv4_f(ptr noundef, <4 x float> noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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" }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = distinct !{!12, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass