; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseResizerBilinear.ll (ZN4Simd4Base20ResizerFloatBilinear3RunEPKfmPfm)

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

%"class.Simd::Resizer" = type { %"struct.Simd::Deletable", %"struct.Simd::ResParam" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::ResParam" = type { i32, i32, i64, i64, i64, i64, i64, i64 }
%"class.Simd::Base::ResizerFloatBilinear" = type { %"class.Simd::Resizer", i8, %"struct.Simd::Array", %"struct.Simd::Array", %"struct.Simd::Array.0", %"struct.Simd::Array.0", [2 x %"struct.Simd::Array.0"] }
%"struct.Simd::Array" = type { ptr, i64 }
%"struct.Simd::Array.0" = type { ptr, i64 }

; 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base20ResizerFloatBilinear3RunEPKfmPfm(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) unnamed_addr #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca [2 x ptr], align 16
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca float, align 4
  %26 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i64 %4, ptr %10, align 8, !tbaa !9
  %27 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %28 = getelementptr inbounds %"class.Simd::Resizer", ptr %27, i32 0, i32 1
  %29 = getelementptr inbounds %"struct.Simd::ResParam", ptr %28, i32 0, i32 6
  %30 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %30, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %31 = getelementptr inbounds %"class.Simd::Resizer", ptr %27, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.Simd::ResParam", ptr %31, i32 0, i32 4
  %33 = load i64, ptr %32, align 8, !tbaa !17
  %34 = load i64, ptr %11, align 8, !tbaa !9
  %35 = mul i64 %33, %34
  store i64 %35, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %36 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %27, i32 0, i32 6
  %37 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %36, i64 0, i64 0
  %38 = getelementptr inbounds %"struct.Simd::Array.0", ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  store ptr %39, ptr %13, align 8, !tbaa !5
  %40 = getelementptr inbounds ptr, ptr %13, i64 1
  %41 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %27, i32 0, i32 6
  %42 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %41, i64 0, i64 1
  %43 = getelementptr inbounds %"struct.Simd::Array.0", ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  store ptr %44, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 -2, ptr %14, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %163, %5
  %46 = load i64, ptr %15, align 8, !tbaa !9
  %47 = getelementptr inbounds %"class.Simd::Resizer", ptr %27, i32 0, i32 1
  %48 = getelementptr inbounds %"struct.Simd::ResParam", ptr %47, i32 0, i32 5
  %49 = load i64, ptr %48, align 8, !tbaa !22
  %50 = icmp ult i64 %46, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %45
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %169

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %53 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %27, i32 0, i32 5
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %53, i64 noundef %54)
  %56 = load float, ptr %55, align 4, !tbaa !23
  store float %56, ptr %17, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %57 = load float, ptr %17, align 4, !tbaa !23
  %58 = fsub float 1.000000e+00, %57
  store float %58, ptr %18, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %59 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %27, i32 0, i32 3
  %60 = load i64, ptr %15, align 8, !tbaa !9
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %59, i64 noundef %60)
  %62 = load i32, ptr %61, align 4, !tbaa !20
  store i32 %62, ptr %19, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !20
  %63 = load i32, ptr %19, align 4, !tbaa !20
  %64 = load i32, ptr %14, align 4, !tbaa !20
  %65 = icmp eq i32 %63, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %52
  store i32 2, ptr %20, align 4, !tbaa !20
  br label %76

67:                                               ; preds = %52
  %68 = load i32, ptr %19, align 4, !tbaa !20
  %69 = load i32, ptr %14, align 4, !tbaa !20
  %70 = add nsw i32 %69, 1
  %71 = icmp eq i32 %68, %70
  br i1 %71, label %72, label %75

72:                                               ; preds = %67
  %73 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %74 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  call void @_ZN4Simd4SwapIPfEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %74)
  store i32 1, ptr %20, align 4, !tbaa !20
  br label %75

75:                                               ; preds = %72, %67
  br label %76

76:                                               ; preds = %75, %66
  %77 = load i32, ptr %19, align 4, !tbaa !20
  store i32 %77, ptr %14, align 4, !tbaa !20
  br label %78

78:                                               ; preds = %132, %76
  %79 = load i32, ptr %20, align 4, !tbaa !20
  %80 = icmp slt i32 %79, 2
  br i1 %80, label %81, label %135

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %82 = load i32, ptr %20, align 4, !tbaa !20
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  store ptr %85, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %19, align 4, !tbaa !20
  %88 = load i32, ptr %20, align 4, !tbaa !20
  %89 = add nsw i32 %87, %88
  %90 = sext i32 %89 to i64
  %91 = load i64, ptr %8, align 8, !tbaa !9
  %92 = mul i64 %90, %91
  %93 = getelementptr inbounds float, ptr %86, i64 %92
  store ptr %93, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %128, %81
  %95 = load i64, ptr %23, align 8, !tbaa !9
  %96 = load i64, ptr %12, align 8, !tbaa !9
  %97 = icmp ult i64 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %131

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %100 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %27, i32 0, i32 2
  %101 = load i64, ptr %23, align 8, !tbaa !9
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %100, i64 noundef %101)
  %103 = load i32, ptr %102, align 4, !tbaa !20
  store i32 %103, ptr %24, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %104 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %27, i32 0, i32 4
  %105 = load i64, ptr %23, align 8, !tbaa !9
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %104, i64 noundef %105)
  %107 = load float, ptr %106, align 4, !tbaa !23
  store float %107, ptr %25, align 4, !tbaa !23
  %108 = load ptr, ptr %22, align 8, !tbaa !5
  %109 = load i32, ptr %24, align 4, !tbaa !20
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %108, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !23
  %113 = load float, ptr %25, align 4, !tbaa !23
  %114 = fsub float 1.000000e+00, %113
  %115 = load ptr, ptr %22, align 8, !tbaa !5
  %116 = load i32, ptr %24, align 4, !tbaa !20
  %117 = sext i32 %116 to i64
  %118 = load i64, ptr %11, align 8, !tbaa !9
  %119 = add i64 %117, %118
  %120 = getelementptr inbounds float, ptr %115, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !23
  %122 = load float, ptr %25, align 4, !tbaa !23
  %123 = fmul float %121, %122
  %124 = call float @llvm.fmuladd.f32(float %112, float %114, float %123)
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = load i64, ptr %23, align 8, !tbaa !9
  %127 = getelementptr inbounds float, ptr %125, i64 %126
  store float %124, ptr %127, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %128

128:                                              ; preds = %99
  %129 = load i64, ptr %23, align 8, !tbaa !9
  %130 = add i64 %129, 1
  store i64 %130, ptr %23, align 8, !tbaa !9
  br label %94, !llvm.loop !25

131:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %20, align 4, !tbaa !20
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %20, align 4, !tbaa !20
  br label %78, !llvm.loop !27

135:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %159, %135
  %137 = load i64, ptr %26, align 8, !tbaa !9
  %138 = load i64, ptr %12, align 8, !tbaa !9
  %139 = icmp ult i64 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %162

141:                                              ; preds = %136
  %142 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %143 = load ptr, ptr %142, align 16, !tbaa !5
  %144 = load i64, ptr %26, align 8, !tbaa !9
  %145 = getelementptr inbounds float, ptr %143, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !23
  %147 = load float, ptr %18, align 4, !tbaa !23
  %148 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = load i64, ptr %26, align 8, !tbaa !9
  %151 = getelementptr inbounds float, ptr %149, i64 %150
  %152 = load float, ptr %151, align 4, !tbaa !23
  %153 = load float, ptr %17, align 4, !tbaa !23
  %154 = fmul float %152, %153
  %155 = call float @llvm.fmuladd.f32(float %146, float %147, float %154)
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = load i64, ptr %26, align 8, !tbaa !9
  %158 = getelementptr inbounds float, ptr %156, i64 %157
  store float %155, ptr %158, align 4, !tbaa !23
  br label %159

159:                                              ; preds = %141
  %160 = load i64, ptr %26, align 8, !tbaa !9
  %161 = add i64 %160, 1
  store i64 %161, ptr %26, align 8, !tbaa !9
  br label %136, !llvm.loop !28

162:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %15, align 8, !tbaa !9
  %165 = add i64 %164, 1
  store i64 %165, ptr %15, align 8, !tbaa !9
  %166 = load i64, ptr %10, align 8, !tbaa !9
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds float, ptr %167, i64 %166
  store ptr %168, ptr %9, align 8, !tbaa !5
  br label %45, !llvm.loop !29

169:                                              ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4SwapIPfEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #4 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTSN4Simd7ResizerE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN4Simd9DeletableE"}
!14 = !{!"_ZTSN4Simd8ResParamE", !15, i64 0, !16, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!15 = !{!"_ZTS21SimdResizeChannelType", !7, i64 0}
!16 = !{!"_ZTS20SimdResizeMethodType", !7, i64 0}
!17 = !{!12, !10, i64 32}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!12, !10, i64 40}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}


; 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 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Simd4Base20ResizerFloatBilinear3RunEPKfmPfm(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr nocapture noundef writeonly %3, i64 noundef %4) unnamed_addr #3 align 2 {
  %6 = ptrtoint ptr %3 to i64
  %7 = alloca [2 x ptr], align 16
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load i64, ptr %10, align 8, !tbaa !14
  %12 = mul i64 %11, %9
  %.fr70 = freeze i64 %12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 136
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  store ptr %14, ptr %7, align 16, !tbaa !18
  %15 = getelementptr inbounds i8, ptr %7, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 152
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  store ptr %17, ptr %15, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load i64, ptr %18, align 8, !tbaa !19
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %5
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  %21 = getelementptr inbounds i8, ptr %0, i64 88
  %.not71 = icmp eq i64 %.fr70, 0
  %22 = getelementptr inbounds i8, ptr %0, i64 72
  %23 = getelementptr inbounds i8, ptr %0, i64 104
  br i1 %.not71, label %.lr.ph58.split.split, label %.lr.ph58.split.us.preheader

.lr.ph58.split.us.preheader:                      ; preds = %.lr.ph58
  %24 = shl i64 %4, 2
  %min.iters.check = icmp ult i64 %.fr70, 8
  %n.vec = and i64 %.fr70, -8
  %cmp.n = icmp eq i64 %.fr70, %n.vec
  %xtraiter = and i64 %.fr70, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph58.split.us

.lr.ph58.split.us:                                ; preds = %.lr.ph58.split.us.preheader, %._crit_edge.us61
  %.04356.us = phi ptr [ %38, %._crit_edge.us61 ], [ %3, %.lr.ph58.split.us.preheader ]
  %.04455.us = phi i32 [ %31, %._crit_edge.us61 ], [ -2, %.lr.ph58.split.us.preheader ]
  %.04654.us = phi i64 [ %37, %._crit_edge.us61 ], [ 0, %.lr.ph58.split.us.preheader ]
  %25 = mul i64 %24, %.04654.us
  %26 = add i64 %25, %6
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %.04654.us)
  %28 = load float, ptr %27, align 4, !tbaa !20
  %29 = fsub float 1.000000e+00, %28
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %.04654.us)
  %31 = load i32, ptr %30, align 4, !tbaa !22
  %.not75 = icmp eq i32 %31, %.04455.us
  br i1 %.not75, label %.lr.ph.us60, label %32

32:                                               ; preds = %.lr.ph58.split.us
  %33 = add nsw i32 %.04455.us, 1
  %34 = icmp eq i32 %31, %33
  br i1 %34, label %35, label %.lr.ph.us.us.preheader

35:                                               ; preds = %32
  call void @_ZN4Simd4SwapIPfEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %15)
  br label %.lr.ph.us.us.preheader

.lr.ph.us.us.preheader:                           ; preds = %35, %32
  %.047.us.ph = phi i64 [ 0, %32 ], [ 1, %35 ]
  %36 = sext i32 %31 to i64
  br label %.lr.ph.us.us

._crit_edge.us61:                                 ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %37 = add nuw i64 %.04654.us, 1
  %38 = getelementptr inbounds float, ptr %.04356.us, i64 %4
  %39 = load i64, ptr %18, align 8, !tbaa !19
  %40 = icmp ult i64 %37, %39
  br i1 %40, label %.lr.ph58.split.us, label %._crit_edge59, !llvm.loop !24

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.053.us = phi i64 [ %56, %scalar.ph ], [ %.053.us.unr, %scalar.ph.prol.loopexit ]
  %41 = getelementptr inbounds float, ptr %79, i64 %.053.us
  %42 = load float, ptr %41, align 4, !tbaa !20
  %43 = getelementptr inbounds float, ptr %80, i64 %.053.us
  %44 = load float, ptr %43, align 4, !tbaa !20
  %45 = fmul float %28, %44
  %46 = call float @llvm.fmuladd.f32(float %42, float %29, float %45)
  %47 = getelementptr inbounds float, ptr %.04356.us, i64 %.053.us
  store float %46, ptr %47, align 4, !tbaa !20
  %48 = add nuw i64 %.053.us, 1
  %49 = getelementptr inbounds float, ptr %79, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !20
  %51 = getelementptr inbounds float, ptr %80, i64 %48
  %52 = load float, ptr %51, align 4, !tbaa !20
  %53 = fmul float %28, %52
  %54 = call float @llvm.fmuladd.f32(float %50, float %29, float %53)
  %55 = getelementptr inbounds float, ptr %.04356.us, i64 %48
  store float %54, ptr %55, align 4, !tbaa !20
  %56 = add nuw i64 %.053.us, 2
  %exitcond79.not.1 = icmp eq i64 %56, %.fr70
  br i1 %exitcond79.not.1, label %._crit_edge.us61, label %scalar.ph, !llvm.loop !26

.lr.ph.us.us:                                     ; preds = %.lr.ph.us.us.preheader, %._crit_edge.us.us
  %indvars.iv = phi i64 [ %.047.us.ph, %.lr.ph.us.us.preheader ], [ 1, %._crit_edge.us.us ]
  %57 = getelementptr inbounds [2 x ptr], ptr %7, i64 0, i64 %indvars.iv
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = add nsw i64 %indvars.iv, %36
  %60 = mul i64 %59, %2
  %61 = getelementptr inbounds float, ptr %1, i64 %60
  %62 = getelementptr float, ptr %61, i64 %9
  br label %63

63:                                               ; preds = %63, %.lr.ph.us.us
  %.04549.us.us = phi i64 [ 0, %.lr.ph.us.us ], [ %77, %63 ]
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef %.04549.us.us)
  %65 = load i32, ptr %64, align 4, !tbaa !22
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %.04549.us.us)
  %67 = load float, ptr %66, align 4, !tbaa !20
  %68 = sext i32 %65 to i64
  %69 = getelementptr inbounds float, ptr %61, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !20
  %71 = fsub float 1.000000e+00, %67
  %72 = getelementptr float, ptr %62, i64 %68
  %73 = load float, ptr %72, align 4, !tbaa !20
  %74 = fmul float %67, %73
  %75 = call float @llvm.fmuladd.f32(float %70, float %71, float %74)
  %76 = getelementptr inbounds float, ptr %58, i64 %.04549.us.us
  store float %75, ptr %76, align 4, !tbaa !20
  %77 = add nuw i64 %.04549.us.us, 1
  %exitcond.not = icmp eq i64 %77, %.fr70
  br i1 %exitcond.not, label %._crit_edge.us.us, label %63, !llvm.loop !28

._crit_edge.us.us:                                ; preds = %63
  %78 = icmp eq i64 %indvars.iv, 0
  br i1 %78, label %.lr.ph.us.us, label %.lr.ph.us60, !llvm.loop !29

.lr.ph.us60:                                      ; preds = %._crit_edge.us.us, %.lr.ph58.split.us
  %79 = load ptr, ptr %7, align 16, !tbaa !18
  %80 = load ptr, ptr %15, align 8, !tbaa !18
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.us60
  %.053.us.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.us60 ], [ %n.vec, %middle.block ]
  %.neg = or disjoint i64 %.053.us.ph, 1
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %81 = getelementptr inbounds float, ptr %79, i64 %.053.us.ph
  %82 = load float, ptr %81, align 4, !tbaa !20
  %83 = getelementptr inbounds float, ptr %80, i64 %.053.us.ph
  %84 = load float, ptr %83, align 4, !tbaa !20
  %85 = fmul float %28, %84
  %86 = call float @llvm.fmuladd.f32(float %82, float %29, float %85)
  %87 = getelementptr inbounds float, ptr %.04356.us, i64 %.053.us.ph
  store float %86, ptr %87, align 4, !tbaa !20
  %88 = or disjoint i64 %.053.us.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.053.us.unr = phi i64 [ %.053.us.ph, %scalar.ph.preheader ], [ %88, %scalar.ph.prol ]
  %89 = icmp eq i64 %.fr70, %.neg
  br i1 %89, label %._crit_edge.us61, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph.us60
  %90 = ptrtoint ptr %80 to i64
  %91 = ptrtoint ptr %79 to i64
  %92 = sub i64 %26, %91
  %diff.check = icmp ult i64 %92, 32
  %93 = sub i64 %26, %90
  %diff.check87 = icmp ult i64 %93, 32
  %conflict.rdx = or i1 %diff.check, %diff.check87
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <4 x float> poison, float %28, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert91 = insertelement <4 x float> poison, float %29, i64 0
  %broadcast.splat92 = shufflevector <4 x float> %broadcast.splatinsert91, <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 ]
  %94 = getelementptr inbounds float, ptr %79, i64 %index
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  %wide.load = load <4 x float>, ptr %94, align 4, !tbaa !20
  %wide.load88 = load <4 x float>, ptr %95, align 4, !tbaa !20
  %96 = getelementptr inbounds float, ptr %80, i64 %index
  %97 = getelementptr inbounds i8, ptr %96, i64 16
  %wide.load89 = load <4 x float>, ptr %96, align 4, !tbaa !20
  %wide.load90 = load <4 x float>, ptr %97, align 4, !tbaa !20
  %98 = fmul <4 x float> %broadcast.splat, %wide.load89
  %99 = fmul <4 x float> %broadcast.splat, %wide.load90
  %100 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load, <4 x float> %broadcast.splat92, <4 x float> %98)
  %101 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load88, <4 x float> %broadcast.splat92, <4 x float> %99)
  %102 = getelementptr inbounds float, ptr %.04356.us, i64 %index
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  store <4 x float> %100, ptr %102, align 4, !tbaa !20
  store <4 x float> %101, ptr %103, align 4, !tbaa !20
  %index.next = add nuw i64 %index, 8
  %104 = icmp eq i64 %index.next, %n.vec
  br i1 %104, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us61, label %scalar.ph.preheader

._crit_edge59:                                    ; preds = %._crit_edge.us61, %.preheader, %5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  ret void

.lr.ph58.split.split:                             ; preds = %.lr.ph58, %.preheader
  %.04455 = phi i32 [ %107, %.preheader ], [ -2, %.lr.ph58 ]
  %.04654 = phi i64 [ %111, %.preheader ], [ 0, %.lr.ph58 ]
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %.04654)
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIiEixEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %.04654)
  %107 = load i32, ptr %106, align 4, !tbaa !22
  %.not73 = icmp ne i32 %107, %.04455
  %108 = add nsw i32 %.04455, 1
  %109 = icmp eq i32 %107, %108
  %or.cond = select i1 %.not73, i1 %109, i1 false
  br i1 %or.cond, label %110, label %.preheader

110:                                              ; preds = %.lr.ph58.split.split
  call void @_ZN4Simd4SwapIPfEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %15)
  br label %.preheader

.preheader:                                       ; preds = %110, %.lr.ph58.split.split
  %111 = add nuw i64 %.04654, 1
  %112 = load i64, ptr %18, align 8, !tbaa !19
  %113 = icmp ult i64 %111, %112
  br i1 %113, label %.lr.ph58.split.split, label %._crit_edge59, !llvm.loop !24
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4SwapIPfEEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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>) #4

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


; Effective O3 passes: ADCEPass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass