; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/vl/mathop_sse2.ll (vl_distance_mahalanobis_sq_sse2_d)

; 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: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_setzero_pd() #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_mul_pd(<2 x double> noundef, <2 x double> noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_add_pd(<2 x double> noundef, <2 x double> noundef) #1

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_loadu_pd(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @_vl_vhsum_sse2_d(<2 x double> noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_sub_pd(<2 x double> noundef, <2 x double> noundef) #1

; Function Attrs: nounwind uwtable
define dso_local double @_vl_distance_mahalanobis_sq_sse2_d(i64 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca <2 x double>, align 16
  %13 = alloca i32, align 4
  %14 = alloca <2 x double>, align 16
  %15 = alloca <2 x double>, align 16
  %16 = alloca <2 x double>, align 16
  %17 = alloca <2 x double>, align 16
  %18 = alloca <2 x double>, align 16
  %19 = alloca <2 x double>, align 16
  %20 = alloca <2 x double>, align 16
  %21 = alloca <2 x double>, align 16
  %22 = alloca <2 x double>, align 16
  %23 = alloca <2 x double>, align 16
  %24 = alloca <2 x double>, align 16
  %25 = alloca <2 x double>, align 16
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  %31 = load i64, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds double, ptr %30, i64 %31
  store ptr %32, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %33 = load ptr, ptr %9, align 8, !tbaa !9
  %34 = getelementptr inbounds double, ptr %33, i64 -2
  %35 = getelementptr inbounds double, ptr %34, i64 1
  store ptr %35, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %36 = call <2 x double> @_mm_setzero_pd()
  store <2 x double> %36, ptr %12, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %37 = load ptr, ptr %6, align 8, !tbaa !9
  %38 = ptrtoint ptr %37 to i64
  %39 = and i64 %38, 15
  %40 = icmp ne i64 %39, 0
  %41 = xor i1 %40, true
  %42 = zext i1 %41 to i32
  %43 = load ptr, ptr %7, align 8, !tbaa !9
  %44 = ptrtoint ptr %43 to i64
  %45 = and i64 %44, 15
  %46 = icmp ne i64 %45, 0
  %47 = xor i1 %46, true
  %48 = zext i1 %47 to i32
  %49 = and i32 %42, %48
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = ptrtoint ptr %50 to i64
  %52 = and i64 %51, 15
  %53 = icmp ne i64 %52, 0
  %54 = xor i1 %53, true
  %55 = zext i1 %54 to i32
  %56 = and i32 %49, %55
  store i32 %56, ptr %13, align 4, !tbaa !12
  %57 = load i32, ptr %13, align 4, !tbaa !12
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %90

59:                                               ; preds = %4
  br label %60

60:                                               ; preds = %64, %59
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !9
  %63 = icmp ult ptr %61, %62
  br i1 %63, label %64, label %89

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = load <2 x double>, ptr %65, align 16, !tbaa !11
  store <2 x double> %66, ptr %14, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %67 = load ptr, ptr %7, align 8, !tbaa !9
  %68 = load <2 x double>, ptr %67, align 16, !tbaa !11
  store <2 x double> %68, ptr %15, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %69 = load ptr, ptr %8, align 8, !tbaa !9
  %70 = load <2 x double>, ptr %69, align 16, !tbaa !11
  store <2 x double> %70, ptr %16, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %71 = load <2 x double>, ptr %14, align 16, !tbaa !11
  %72 = load <2 x double>, ptr %15, align 16, !tbaa !11
  %73 = call <2 x double> @_mm_sub_pd(<2 x double> noundef %71, <2 x double> noundef %72)
  store <2 x double> %73, ptr %17, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %74 = load <2 x double>, ptr %17, align 16, !tbaa !11
  %75 = load <2 x double>, ptr %17, align 16, !tbaa !11
  %76 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %74, <2 x double> noundef %75)
  store <2 x double> %76, ptr %18, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %77 = load <2 x double>, ptr %18, align 16, !tbaa !11
  %78 = load <2 x double>, ptr %16, align 16, !tbaa !11
  %79 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %77, <2 x double> noundef %78)
  store <2 x double> %79, ptr %19, align 16, !tbaa !11
  %80 = load <2 x double>, ptr %12, align 16, !tbaa !11
  %81 = load <2 x double>, ptr %19, align 16, !tbaa !11
  %82 = call <2 x double> @_mm_add_pd(<2 x double> noundef %80, <2 x double> noundef %81)
  store <2 x double> %82, ptr %12, align 16, !tbaa !11
  %83 = load ptr, ptr %6, align 8, !tbaa !9
  %84 = getelementptr inbounds double, ptr %83, i64 2
  store ptr %84, ptr %6, align 8, !tbaa !9
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %85, i64 2
  store ptr %86, ptr %7, align 8, !tbaa !9
  %87 = load ptr, ptr %8, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %87, i64 2
  store ptr %88, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  br label %60, !llvm.loop !14

89:                                               ; preds = %60
  br label %121

90:                                               ; preds = %4
  br label %91

91:                                               ; preds = %95, %90
  %92 = load ptr, ptr %6, align 8, !tbaa !9
  %93 = load ptr, ptr %10, align 8, !tbaa !9
  %94 = icmp ult ptr %92, %93
  br i1 %94, label %95, label %120

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %96 = load ptr, ptr %6, align 8, !tbaa !9
  %97 = call <2 x double> @_mm_loadu_pd(ptr noundef %96)
  store <2 x double> %97, ptr %20, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %98 = load ptr, ptr %7, align 8, !tbaa !9
  %99 = call <2 x double> @_mm_loadu_pd(ptr noundef %98)
  store <2 x double> %99, ptr %21, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %100 = load ptr, ptr %8, align 8, !tbaa !9
  %101 = call <2 x double> @_mm_loadu_pd(ptr noundef %100)
  store <2 x double> %101, ptr %22, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  %102 = load <2 x double>, ptr %20, align 16, !tbaa !11
  %103 = load <2 x double>, ptr %21, align 16, !tbaa !11
  %104 = call <2 x double> @_mm_sub_pd(<2 x double> noundef %102, <2 x double> noundef %103)
  store <2 x double> %104, ptr %23, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %105 = load <2 x double>, ptr %23, align 16, !tbaa !11
  %106 = load <2 x double>, ptr %23, align 16, !tbaa !11
  %107 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %105, <2 x double> noundef %106)
  store <2 x double> %107, ptr %24, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %108 = load <2 x double>, ptr %24, align 16, !tbaa !11
  %109 = load <2 x double>, ptr %22, align 16, !tbaa !11
  %110 = call <2 x double> @_mm_mul_pd(<2 x double> noundef %108, <2 x double> noundef %109)
  store <2 x double> %110, ptr %25, align 16, !tbaa !11
  %111 = load <2 x double>, ptr %12, align 16, !tbaa !11
  %112 = load <2 x double>, ptr %25, align 16, !tbaa !11
  %113 = call <2 x double> @_mm_add_pd(<2 x double> noundef %111, <2 x double> noundef %112)
  store <2 x double> %113, ptr %12, align 16, !tbaa !11
  %114 = load ptr, ptr %6, align 8, !tbaa !9
  %115 = getelementptr inbounds double, ptr %114, i64 2
  store ptr %115, ptr %6, align 8, !tbaa !9
  %116 = load ptr, ptr %7, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %116, i64 2
  store ptr %117, ptr %7, align 8, !tbaa !9
  %118 = load ptr, ptr %8, align 8, !tbaa !9
  %119 = getelementptr inbounds double, ptr %118, i64 2
  store ptr %119, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %91, !llvm.loop !16

120:                                              ; preds = %91
  br label %121

121:                                              ; preds = %120, %89
  %122 = load <2 x double>, ptr %12, align 16, !tbaa !11
  %123 = call double @_vl_vhsum_sse2_d(<2 x double> noundef %122)
  store double %123, ptr %11, align 8, !tbaa !17
  br label %124

124:                                              ; preds = %128, %121
  %125 = load ptr, ptr %6, align 8, !tbaa !9
  %126 = load ptr, ptr %9, align 8, !tbaa !9
  %127 = icmp ult ptr %125, %126
  br i1 %127, label %128, label %147

128:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %129 = load ptr, ptr %6, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %129, i32 1
  store ptr %130, ptr %6, align 8, !tbaa !9
  %131 = load double, ptr %129, align 8, !tbaa !17
  store double %131, ptr %26, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %132 = load ptr, ptr %7, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i32 1
  store ptr %133, ptr %7, align 8, !tbaa !9
  %134 = load double, ptr %132, align 8, !tbaa !17
  store double %134, ptr %27, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %135 = load ptr, ptr %8, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %135, i32 1
  store ptr %136, ptr %8, align 8, !tbaa !9
  %137 = load double, ptr %135, align 8, !tbaa !17
  store double %137, ptr %28, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %138 = load double, ptr %26, align 8, !tbaa !17
  %139 = load double, ptr %27, align 8, !tbaa !17
  %140 = fsub double %138, %139
  store double %140, ptr %29, align 8, !tbaa !17
  %141 = load double, ptr %29, align 8, !tbaa !17
  %142 = load double, ptr %29, align 8, !tbaa !17
  %143 = fmul double %141, %142
  %144 = load double, ptr %28, align 8, !tbaa !17
  %145 = load double, ptr %11, align 8, !tbaa !17
  %146 = call double @llvm.fmuladd.f64(double %143, double %144, double %145)
  store double %146, ptr %11, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %124, !llvm.loop !19

147:                                              ; preds = %124
  %148 = load double, ptr %11, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret double %148
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 #2 = { inlinehint 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !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: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_setzero_pd() local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_mul_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_add_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_loadu_pd(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @_vl_vhsum_sse2_d(<2 x double> noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_sub_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local double @_vl_distance_mahalanobis_sq_sse2_d(i64 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds double, ptr %1, i64 %0
  %6 = getelementptr inbounds i8, ptr %5, i64 -8
  %7 = tail call <2 x double> @_mm_setzero_pd()
  %8 = ptrtoint ptr %1 to i64
  %9 = ptrtoint ptr %2 to i64
  %10 = or i64 %9, %8
  %11 = ptrtoint ptr %3 to i64
  %12 = or i64 %10, %11
  %13 = and i64 %12, 15
  %14 = icmp eq i64 %13, 0
  %15 = icmp ugt ptr %6, %1
  br i1 %14, label %.preheader, label %.preheader64

.preheader64:                                     ; preds = %4
  br i1 %15, label %.lr.ph, label %.loopexit

.preheader:                                       ; preds = %4
  br i1 %15, label %.lr.ph77, label %.loopexit

.lr.ph77:                                         ; preds = %.preheader, %.lr.ph77
  %.076 = phi ptr [ %23, %.lr.ph77 ], [ %1, %.preheader ]
  %.05175 = phi ptr [ %24, %.lr.ph77 ], [ %2, %.preheader ]
  %.05574 = phi ptr [ %25, %.lr.ph77 ], [ %3, %.preheader ]
  %.06073 = phi <2 x double> [ %22, %.lr.ph77 ], [ %7, %.preheader ]
  %16 = load <2 x double>, ptr %.076, align 16, !tbaa !5
  %17 = load <2 x double>, ptr %.05175, align 16, !tbaa !5
  %18 = load <2 x double>, ptr %.05574, align 16, !tbaa !5
  %19 = tail call <2 x double> @_mm_sub_pd(<2 x double> noundef %16, <2 x double> noundef %17)
  %20 = tail call <2 x double> @_mm_mul_pd(<2 x double> noundef %19, <2 x double> noundef %19)
  %21 = tail call <2 x double> @_mm_mul_pd(<2 x double> noundef %20, <2 x double> noundef %18)
  %22 = tail call <2 x double> @_mm_add_pd(<2 x double> noundef %.06073, <2 x double> noundef %21)
  %23 = getelementptr inbounds i8, ptr %.076, i64 16
  %24 = getelementptr inbounds i8, ptr %.05175, i64 16
  %25 = getelementptr inbounds i8, ptr %.05574, i64 16
  %26 = icmp ult ptr %23, %6
  br i1 %26, label %.lr.ph77, label %.loopexit, !llvm.loop !8

.lr.ph:                                           ; preds = %.preheader64, %.lr.ph
  %.169 = phi ptr [ %34, %.lr.ph ], [ %1, %.preheader64 ]
  %.15268 = phi ptr [ %35, %.lr.ph ], [ %2, %.preheader64 ]
  %.15667 = phi ptr [ %36, %.lr.ph ], [ %3, %.preheader64 ]
  %.16166 = phi <2 x double> [ %33, %.lr.ph ], [ %7, %.preheader64 ]
  %27 = tail call <2 x double> @_mm_loadu_pd(ptr noundef %.169)
  %28 = tail call <2 x double> @_mm_loadu_pd(ptr noundef %.15268)
  %29 = tail call <2 x double> @_mm_loadu_pd(ptr noundef %.15667)
  %30 = tail call <2 x double> @_mm_sub_pd(<2 x double> noundef %27, <2 x double> noundef %28)
  %31 = tail call <2 x double> @_mm_mul_pd(<2 x double> noundef %30, <2 x double> noundef %30)
  %32 = tail call <2 x double> @_mm_mul_pd(<2 x double> noundef %31, <2 x double> noundef %29)
  %33 = tail call <2 x double> @_mm_add_pd(<2 x double> noundef %.16166, <2 x double> noundef %32)
  %34 = getelementptr inbounds i8, ptr %.169, i64 16
  %35 = getelementptr inbounds i8, ptr %.15268, i64 16
  %36 = getelementptr inbounds i8, ptr %.15667, i64 16
  %37 = icmp ult ptr %34, %6
  br i1 %37, label %.lr.ph, label %.loopexit, !llvm.loop !10

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph77, %.preheader64, %.preheader
  %.262 = phi <2 x double> [ %7, %.preheader ], [ %7, %.preheader64 ], [ %22, %.lr.ph77 ], [ %33, %.lr.ph ]
  %.257 = phi ptr [ %3, %.preheader ], [ %3, %.preheader64 ], [ %25, %.lr.ph77 ], [ %36, %.lr.ph ]
  %.253 = phi ptr [ %2, %.preheader ], [ %2, %.preheader64 ], [ %24, %.lr.ph77 ], [ %35, %.lr.ph ]
  %.2 = phi ptr [ %1, %.preheader ], [ %1, %.preheader64 ], [ %23, %.lr.ph77 ], [ %34, %.lr.ph ]
  %38 = tail call double @_vl_vhsum_sse2_d(<2 x double> noundef %.262)
  %39 = icmp ult ptr %.2, %5
  br i1 %39, label %.lr.ph86, label %._crit_edge

.lr.ph86:                                         ; preds = %.loopexit, %.lr.ph86
  %.385 = phi ptr [ %40, %.lr.ph86 ], [ %.2, %.loopexit ]
  %.35484 = phi ptr [ %42, %.lr.ph86 ], [ %.253, %.loopexit ]
  %.35883 = phi ptr [ %44, %.lr.ph86 ], [ %.257, %.loopexit ]
  %.05982 = phi double [ %48, %.lr.ph86 ], [ %38, %.loopexit ]
  %40 = getelementptr inbounds i8, ptr %.385, i64 8
  %41 = load double, ptr %.385, align 8, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %.35484, i64 8
  %43 = load double, ptr %.35484, align 8, !tbaa !11
  %44 = getelementptr inbounds i8, ptr %.35883, i64 8
  %45 = load double, ptr %.35883, align 8, !tbaa !11
  %46 = fsub double %41, %43
  %47 = fmul double %46, %46
  %48 = tail call double @llvm.fmuladd.f64(double %47, double %45, double %.05982)
  %49 = icmp ult ptr %40, %5
  br i1 %49, label %.lr.ph86, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph86, %.loopexit
  %.059.lcssa = phi double [ %38, %.loopexit ], [ %48, %.lr.ph86 ]
  ret double %.059.lcssa
}

attributes #0 = { alwaysinline 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 = { inlinehint 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !6, i64 0}
!13 = distinct !{!13, !9}


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