; LLVM IR from ermig1979/Simd :: src/Simd (SimdBaseSynetGridSample2d32fBlZ)

; 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::Base::SynetGridSample2d32fBlZ" = type { %"class.Simd::SynetGridSample2d", %"struct.Simd::Array", %"struct.Simd::Array", %"struct.Simd::Array.0", i64, i64, i64, i64, ptr, ptr }
%"class.Simd::SynetGridSample2d" = type { %"struct.Simd::Deletable", %"struct.Simd::GridSample2dParam" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::GridSample2dParam" = type { i64, i64, i64, i64, i64, i64, i32, i32, i32, i32 }
%"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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

44:                                               ; preds = %139, %4
  %45 = load i64, ptr %16, align 8, !tbaa !25
  %46 = getelementptr inbounds %"class.Simd::SynetGridSample2d", ptr %20, i32 0, i32 1
  %47 = getelementptr inbounds %"struct.Simd::GridSample2dParam", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !26
  %49 = icmp ult i64 %45, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %44
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %142

51:                                               ; preds = %44
  %52 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 8
  %53 = load ptr, ptr %52, align 8, !tbaa !27
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 7
  %56 = load i64, ptr %55, align 8, !tbaa !24
  %57 = getelementptr inbounds %"class.Simd::SynetGridSample2d", ptr %20, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.Simd::GridSample2dParam", ptr %57, i32 0, i32 2
  %59 = load i64, ptr %58, align 8, !tbaa !28
  %60 = trunc i64 %59 to i32
  %61 = getelementptr inbounds %"class.Simd::SynetGridSample2d", ptr %20, i32 0, i32 1
  %62 = getelementptr inbounds %"struct.Simd::GridSample2dParam", ptr %61, i32 0, i32 3
  %63 = load i64, ptr %62, align 8, !tbaa !29
  %64 = trunc i64 %63 to i32
  %65 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 5
  %66 = load i64, ptr %65, align 8, !tbaa !21
  %67 = trunc i64 %66 to i32
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  call void %53(ptr noundef %54, i64 noundef %56, i32 noundef %60, i32 noundef %64, i32 noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store i64 0, ptr %18, align 8, !tbaa !25
  br label %71

71:                                               ; preds = %130, %51
  %72 = load i64, ptr %18, align 8, !tbaa !25
  %73 = getelementptr inbounds %"class.Simd::SynetGridSample2d", ptr %20, i32 0, i32 1
  %74 = getelementptr inbounds %"struct.Simd::GridSample2dParam", ptr %73, i32 0, i32 1
  %75 = load i64, ptr %74, align 8, !tbaa !30
  %76 = icmp ult i64 %72, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %71
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %133

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store i64 0, ptr %19, align 8, !tbaa !25
  br label %79

79:                                               ; preds = %104, %78
  %80 = load i64, ptr %19, align 8, !tbaa !25
  %81 = getelementptr inbounds %"class.Simd::SynetGridSample2d", ptr %20, i32 0, i32 1
  %82 = getelementptr inbounds %"struct.Simd::GridSample2dParam", ptr %81, i32 0, i32 2
  %83 = load i64, ptr %82, align 8, !tbaa !28
  %84 = icmp ult i64 %80, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %79
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %107

86:                                               ; preds = %79
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load i64, ptr %19, align 8, !tbaa !25
  %89 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 5
  %90 = load i64, ptr %89, align 8, !tbaa !21
  %91 = mul i64 %88, %90
  %92 = getelementptr inbounds float, ptr %87, i64 %91
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i64, ptr %19, align 8, !tbaa !25
  %95 = getelementptr inbounds %"class.Simd::SynetGridSample2d", ptr %20, i32 0, i32 1
  %96 = getelementptr inbounds %"struct.Simd::GridSample2dParam", ptr %95, i32 0, i32 3
  %97 = load i64, ptr %96, align 8, !tbaa !29
  %98 = mul i64 %94, %97
  %99 = getelementptr inbounds float, ptr %93, i64 %98
  %100 = getelementptr inbounds %"class.Simd::SynetGridSample2d", ptr %20, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.Simd::GridSample2dParam", ptr %100, i32 0, i32 3
  %102 = load i64, ptr %101, align 8, !tbaa !29
  %103 = mul i64 %102, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 4 %99, i64 %103, i1 false)
  br label %104

104:                                              ; preds = %86
  %105 = load i64, ptr %19, align 8, !tbaa !25
  %106 = add i64 %105, 1
  store i64 %106, ptr %19, align 8, !tbaa !25
  br label %79, !llvm.loop !31

107:                                              ; preds = %85
  %108 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 9
  %109 = load ptr, ptr %108, align 8, !tbaa !33
  %110 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 1
  %111 = getelementptr inbounds %"struct.Simd::Array", ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 7
  %114 = load i64, ptr %113, align 8, !tbaa !24
  %115 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 5
  %116 = load i64, ptr %115, align 8, !tbaa !21
  %117 = trunc i64 %116 to i32
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  call void %109(ptr noundef %112, i64 noundef %114, i32 noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %121)
  %122 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 6
  %123 = load i64, ptr %122, align 8, !tbaa !34
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds float, ptr %124, i64 %123
  store ptr %125, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 7
  %127 = load i64, ptr %126, align 8, !tbaa !24
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds float, ptr %128, i64 %127
  store ptr %129, ptr %11, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %107
  %131 = load i64, ptr %18, align 8, !tbaa !25
  %132 = add i64 %131, 1
  store i64 %132, ptr %18, align 8, !tbaa !25
  br label %71, !llvm.loop !35

133:                                              ; preds = %77
  %134 = getelementptr inbounds %"class.Simd::Base::SynetGridSample2d32fBlZ", ptr %20, i32 0, i32 7
  %135 = load i64, ptr %134, align 8, !tbaa !24
  %136 = mul i64 2, %135
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds float, ptr %137, i64 %136
  store ptr %138, ptr %10, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %133
  %140 = load i64, ptr %16, align 8, !tbaa !25
  %141 = add i64 %140, 1
  store i64 %141, ptr %16, align 8, !tbaa !25
  br label %44, !llvm.loop !36

142:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 72}
!10 = !{!"_ZTSN4Simd4Base23SynetGridSample2d32fBlZE", !11, i64 0, !19, i64 72, !19, i64 88, !20, i64 104, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !6, i64 152, !6, i64 160}
!11 = !{!"_ZTSN4Simd17SynetGridSample2dE", !12, i64 0, !13, i64 8}
!12 = !{!"_ZTSN4Simd9DeletableE"}
!13 = !{!"_ZTSN4Simd17GridSample2dParamE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !15, i64 48, !16, i64 52, !17, i64 56, !18, i64 60}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!16 = !{!"_ZTS24SimdGridSampleInterpType", !7, i64 0}
!17 = !{!"_ZTS25SimdGridSamplePaddingType", !7, i64 0}
!18 = !{!"_ZTS8SimdBool", !7, i64 0}
!19 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !14, i64 8}
!20 = !{!"_ZTSN4Simd5ArrayIjEE", !6, i64 0, !14, i64 8}
!21 = !{!10, !14, i64 128}
!22 = !{!10, !6, i64 104}
!23 = !{!10, !6, i64 88}
!24 = !{!10, !14, i64 144}
!25 = !{!14, !14, i64 0}
!26 = !{!11, !14, i64 8}
!27 = !{!10, !6, i64 152}
!28 = !{!11, !14, i64 24}
!29 = !{!11, !14, i64 32}
!30 = !{!11, !14, i64 16}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!10, !6, i64 160}
!34 = !{!10, !14, i64 136}
!35 = distinct !{!35, !32}
!36 = distinct !{!36, !32}


; 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 uwtable
define dso_local void @_ZN4Simd4Base23SynetGridSample2d32fBlZ7ForwardEPKhS3_Ph(ptr nocapture noundef nonnull readonly align 8 dereferenceable(168) %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 72
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 128
  %8 = load i64, ptr %7, align 8, !tbaa !20
  %.idx = shl i64 %8, 3
  %9 = getelementptr inbounds i8, ptr %6, i64 %.idx
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 104
  %12 = load ptr, ptr %11, align 8, !tbaa !21
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  %14 = load ptr, ptr %13, align 8, !tbaa !22
  %15 = getelementptr inbounds i8, ptr %0, i64 144
  %16 = load i64, ptr %15, align 8, !tbaa !23
  %17 = getelementptr inbounds float, ptr %14, i64 %16
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i64, ptr %18, align 8, !tbaa !24
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %._crit_edge43, label %.lr.ph42

.lr.ph42:                                         ; preds = %4
  %20 = getelementptr inbounds i8, ptr %0, i64 152
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = getelementptr inbounds i8, ptr %0, i64 160
  %25 = getelementptr inbounds i8, ptr %0, i64 136
  br label %26

._crit_edge43:                                    ; preds = %._crit_edge35, %4
  ret void

26:                                               ; preds = %.lr.ph42, %._crit_edge35
  %27 = phi i64 [ %16, %.lr.ph42 ], [ %37, %._crit_edge35 ]
  %.02540 = phi i64 [ 0, %.lr.ph42 ], [ %39, %._crit_edge35 ]
  %.02639 = phi ptr [ %1, %.lr.ph42 ], [ %.1.lcssa, %._crit_edge35 ]
  %.02738 = phi ptr [ %2, %.lr.ph42 ], [ %38, %._crit_edge35 ]
  %.02837 = phi ptr [ %3, %.lr.ph42 ], [ %.129.lcssa, %._crit_edge35 ]
  %28 = load ptr, ptr %20, align 8, !tbaa !25
  %29 = load i64, ptr %21, align 8, !tbaa !26
  %30 = trunc i64 %29 to i32
  %31 = load i64, ptr %22, align 8, !tbaa !27
  %32 = trunc i64 %31 to i32
  %33 = load i64, ptr %7, align 8, !tbaa !20
  %34 = trunc i64 %33 to i32
  tail call void %28(ptr noundef %.02738, i64 noundef %27, i32 noundef %30, i32 noundef %32, i32 noundef %34, ptr noundef %12, ptr noundef %14, ptr noundef %17)
  %35 = load i64, ptr %23, align 8, !tbaa !28
  %.not44 = icmp eq i64 %35, 0
  br i1 %.not44, label %.._crit_edge35_crit_edge, label %.preheader

.._crit_edge35_crit_edge:                         ; preds = %26
  %.pre = load i64, ptr %15, align 8, !tbaa !23
  br label %._crit_edge35

.preheader:                                       ; preds = %26, %._crit_edge
  %.02434 = phi i64 [ %51, %._crit_edge ], [ 0, %26 ]
  %.133 = phi ptr [ %48, %._crit_edge ], [ %.02639, %26 ]
  %.12932 = phi ptr [ %50, %._crit_edge ], [ %.02837, %26 ]
  %36 = load i64, ptr %21, align 8, !tbaa !26
  %.not45 = icmp eq i64 %36, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph

._crit_edge35:                                    ; preds = %._crit_edge, %.._crit_edge35_crit_edge
  %37 = phi i64 [ %.pre, %.._crit_edge35_crit_edge ], [ %49, %._crit_edge ]
  %.129.lcssa = phi ptr [ %.02837, %.._crit_edge35_crit_edge ], [ %50, %._crit_edge ]
  %.1.lcssa = phi ptr [ %.02639, %.._crit_edge35_crit_edge ], [ %48, %._crit_edge ]
  %.idx30 = shl i64 %37, 3
  %38 = getelementptr inbounds i8, ptr %.02738, i64 %.idx30
  %39 = add nuw i64 %.02540, 1
  %40 = load i64, ptr %18, align 8, !tbaa !24
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %26, label %._crit_edge43, !llvm.loop !29

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %42 = load ptr, ptr %24, align 8, !tbaa !31
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load i64, ptr %15, align 8, !tbaa !23
  %45 = load i64, ptr %7, align 8, !tbaa !20
  %46 = trunc i64 %45 to i32
  tail call void %42(ptr noundef %43, i64 noundef %44, i32 noundef %46, ptr noundef %12, ptr noundef %14, ptr noundef %17, ptr noundef %.12932)
  %47 = load i64, ptr %25, align 8, !tbaa !32
  %48 = getelementptr inbounds float, ptr %.133, i64 %47
  %49 = load i64, ptr %15, align 8, !tbaa !23
  %50 = getelementptr inbounds float, ptr %.12932, i64 %49
  %51 = add nuw i64 %.02434, 1
  %52 = load i64, ptr %23, align 8, !tbaa !28
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %.preheader, label %._crit_edge35, !llvm.loop !33

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.031 = phi i64 [ %61, %.lr.ph ], [ 0, %.preheader ]
  %54 = load i64, ptr %7, align 8, !tbaa !20
  %55 = mul i64 %54, %.031
  %56 = getelementptr inbounds float, ptr %10, i64 %55
  %57 = load i64, ptr %22, align 8, !tbaa !27
  %58 = mul i64 %57, %.031
  %59 = getelementptr inbounds float, ptr %.133, i64 %58
  %60 = shl i64 %57, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %56, ptr align 4 %59, i64 %60, i1 false)
  %61 = add nuw i64 %.031, 1
  %62 = load i64, ptr %21, align 8, !tbaa !26
  %63 = icmp ult i64 %61, %62
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !34
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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, !18, i64 72}
!6 = !{!"_ZTSN4Simd4Base23SynetGridSample2d32fBlZE", !7, i64 0, !17, i64 72, !17, i64 88, !19, i64 104, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !18, i64 152, !18, i64 160}
!7 = !{!"_ZTSN4Simd17SynetGridSample2dE", !8, i64 0, !9, i64 8}
!8 = !{!"_ZTSN4Simd9DeletableE"}
!9 = !{!"_ZTSN4Simd17GridSample2dParamE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !14, i64 52, !15, i64 56, !16, i64 60}
!10 = !{!"long", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTS18SimdTensorDataType", !11, i64 0}
!14 = !{!"_ZTS24SimdGridSampleInterpType", !11, i64 0}
!15 = !{!"_ZTS25SimdGridSamplePaddingType", !11, i64 0}
!16 = !{!"_ZTS8SimdBool", !11, i64 0}
!17 = !{!"_ZTSN4Simd5ArrayIfEE", !18, i64 0, !10, i64 8}
!18 = !{!"any pointer", !11, i64 0}
!19 = !{!"_ZTSN4Simd5ArrayIjEE", !18, i64 0, !10, i64 8}
!20 = !{!6, !10, i64 128}
!21 = !{!6, !18, i64 104}
!22 = !{!6, !18, i64 88}
!23 = !{!6, !10, i64 144}
!24 = !{!7, !10, i64 8}
!25 = !{!6, !18, i64 152}
!26 = !{!7, !10, i64 24}
!27 = !{!7, !10, i64 32}
!28 = !{!7, !10, i64 16}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!6, !18, i64 160}
!32 = !{!6, !10, i64 136}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}


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