; LLVM IR from NVIDIA/TensorRT :: plugin/skipLayerNormPlugin (skipLayerNormPluginLegacy)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::bert::SkipLayerNormPluginDynamic" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", %"class.std::unique_ptr", i64, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, i8, %"class.std::unique_ptr", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i64 }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }

@.str = external hidden unnamed_addr constant [106 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [41 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #3

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  %19 = load ptr, ptr %7, align 8
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %39, label %22

22:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii, i32 noundef 158, i32 noundef 0, ptr noundef @.str.13) #6
          to label %23 unwind label %24

23:                                               ; preds = %22
  unreachable

24:                                               ; preds = %58, %47, %42, %22
  %25 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %12, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %13, align 4
  br label %28

28:                                               ; preds = %24
  %29 = load i32, ptr %13, align 4
  %30 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %32, label %137

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %33 = load ptr, ptr %12, align 8
  %34 = call ptr @__cxa_begin_catch(ptr %33) #7
  store ptr %34, ptr %18, align 8
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %36 unwind label %134

36:                                               ; preds = %32
  invoke void @__cxa_end_catch()
          to label %37 unwind label %134

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %38

38:                                               ; preds = %37
  store i1 false, ptr %6, align 1
  br label %132

39:                                               ; preds = %5
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 2
  br i1 %41, label %44, label %42

42:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii, i32 noundef 159, i32 noundef 0, ptr noundef @.str.10) #6
          to label %43 unwind label %24

43:                                               ; preds = %42
  unreachable

44:                                               ; preds = %39
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %49, label %47

47:                                               ; preds = %44
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii, i32 noundef 160, i32 noundef 0, ptr noundef @.str.14) #6
          to label %48 unwind label %24

48:                                               ; preds = %47
  unreachable

49:                                               ; preds = %44
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp sge i32 %50, 0
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = add nsw i32 %54, %55
  %57 = icmp slt i32 %53, %56
  br i1 %57, label %60, label %58

58:                                               ; preds = %52, %49
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii, i32 noundef 161, i32 noundef 0, ptr noundef @.str.15) #6
          to label %59 unwind label %24

59:                                               ; preds = %58
  unreachable

60:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %61, i64 %63
  store ptr %64, ptr %14, align 8, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %108

67:                                               ; preds = %60
  %68 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginDynamic", ptr %19, i32 0, i32 8
  %69 = load i32, ptr %68, align 8, !tbaa !11
  %70 = icmp eq i32 %69, 2
  br i1 %70, label %71, label %94

71:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 5, ptr %15, align 4, !tbaa !29
  %72 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginDynamic", ptr %19, i32 0, i32 5
  %73 = load i64, ptr %72, align 8, !tbaa !31
  %74 = icmp ult i64 %73, 32
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  store i32 3, ptr %15, align 4, !tbaa !29
  %76 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginDynamic", ptr %19, i32 0, i32 5
  br label %79

77:                                               ; preds = %71
  %78 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginDynamic", ptr %19, i32 0, i32 5
  br label %79

79:                                               ; preds = %77, %75
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !32
  %83 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginDynamic", ptr %19, i32 0, i32 8
  %84 = load i32, ptr %83, align 8, !tbaa !11
  %85 = icmp eq i32 %82, %84
  br i1 %85, label %86, label %92

86:                                               ; preds = %79
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %87, i32 0, i32 2
  %89 = load i32, ptr %88, align 4, !tbaa !36
  %90 = load i32, ptr %15, align 4, !tbaa !29
  %91 = icmp eq i32 %89, %90
  br label %92

92:                                               ; preds = %86, %79
  %93 = phi i1 [ false, %79 ], [ %91, %86 ]
  store i1 %93, ptr %6, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %131

94:                                               ; preds = %67
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !32
  %98 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginDynamic", ptr %19, i32 0, i32 8
  %99 = load i32, ptr %98, align 8, !tbaa !11
  %100 = icmp eq i32 %97, %99
  br i1 %100, label %101, label %106

101:                                              ; preds = %94
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !36
  %105 = icmp eq i32 %104, 0
  br label %106

106:                                              ; preds = %101, %94
  %107 = phi i1 [ false, %94 ], [ %105, %101 ]
  store i1 %107, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %131

108:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = sub nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %109, i64 %112
  store ptr %113, ptr %17, align 8, !tbaa !5
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 8, !tbaa !32
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !32
  %120 = icmp eq i32 %116, %119
  br i1 %120, label %121, label %129

121:                                              ; preds = %108
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %122, i32 0, i32 2
  %124 = load i32, ptr %123, align 4, !tbaa !36
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %125, i32 0, i32 2
  %127 = load i32, ptr %126, align 4, !tbaa !36
  %128 = icmp eq i32 %124, %127
  br label %129

129:                                              ; preds = %121, %108
  %130 = phi i1 [ false, %108 ], [ %128, %121 ]
  store i1 %130, ptr %6, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %131

131:                                              ; preds = %129, %106, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %132

132:                                              ; preds = %131, %38
  %133 = load i1, ptr %6, align 1
  ret i1 %133

134:                                              ; preds = %36, %32
  %135 = landingpad { ptr, i32 }
          catch ptr null
  %136 = extractvalue { ptr, i32 } %135, 0
  call void @__clang_call_terminate(ptr %136) #8
  unreachable

137:                                              ; preds = %28
  %138 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %138) #8
  unreachable
}

attributes #0 = { noreturn "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 = { nounwind memory(none) }
attributes #3 = { noinline noreturn nounwind uwtable "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { noreturn }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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, !27, i64 144}
!12 = !{!"_ZTSN8nvinfer16plugin4bert26SkipLayerNormPluginDynamicE", !13, i64 0, !16, i64 8, !16, i64 40, !19, i64 72, !19, i64 80, !18, i64 88, !25, i64 96, !25, i64 120, !27, i64 144, !27, i64 148, !28, i64 152, !19, i64 160, !25, i64 168, !18, i64 192}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!25 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !26, i64 0}
!26 = !{!"_ZTSN8nvinfer17WeightsE", !27, i64 0, !6, i64 8, !18, i64 16}
!27 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!31 = !{!12, !18, i64 88}
!32 = !{!33, !27, i64 72}
!33 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !34, i64 0, !27, i64 72, !30, i64 76, !35, i64 80}
!34 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!35 = !{!"float", !7, i64 0}
!36 = !{!33, !30, i64 76}


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

%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str = external hidden unnamed_addr constant [106 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [41 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii(ptr nocapture noundef nonnull readonly align 8 dereferenceable(200) %0, i32 noundef %1, ptr noundef readonly %2, i32 noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %.invoke, label %15

6:                                                ; preds = %.invoke
  %7 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %8 = extractvalue { ptr, i32 } %7, 0
  %9 = extractvalue { ptr, i32 } %7, 1
  %10 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %11 = icmp eq i32 %9, %10
  br i1 %11, label %12, label %63

12:                                               ; preds = %6
  %13 = tail call ptr @__cxa_begin_catch(ptr %8) #5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %14 unwind label %60

14:                                               ; preds = %12
  invoke void @__cxa_end_catch()
          to label %59 unwind label %60

15:                                               ; preds = %5
  %16 = icmp eq i32 %3, 2
  br i1 %16, label %17, label %.invoke

17:                                               ; preds = %15
  %18 = icmp eq i32 %4, 1
  br i1 %18, label %19, label %.invoke

19:                                               ; preds = %17
  %or.cond = icmp ult i32 %1, 3
  br i1 %or.cond, label %22, label %.invoke

.invoke:                                          ; preds = %5, %19, %17, %15
  %20 = phi i32 [ 159, %15 ], [ 160, %17 ], [ 161, %19 ], [ 158, %5 ]
  %21 = phi ptr [ @.str.10, %15 ], [ @.str.14, %17 ], [ @.str.15, %19 ], [ @.str.13, %5 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_16PluginTensorDescEii, i32 noundef %20, i32 noundef 0, ptr noundef nonnull %21) #6
          to label %.cont unwind label %6

.cont:                                            ; preds = %.invoke
  unreachable

22:                                               ; preds = %19
  %23 = zext nneg i32 %1 to i64
  %24 = getelementptr %"struct.nvinfer1::PluginTensorDesc", ptr %2, i64 %23
  %25 = icmp eq i32 %1, 0
  br i1 %25, label %26, label %47

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 144
  %28 = load i32, ptr %27, align 8, !tbaa !5
  %29 = icmp eq i32 %28, 2
  %30 = getelementptr inbounds i8, ptr %24, i64 72
  %31 = load i32, ptr %30, align 8, !tbaa !26
  br i1 %29, label %32, label %41

32:                                               ; preds = %26
  %33 = icmp eq i32 %31, 2
  br i1 %33, label %34, label %59

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %0, i64 88
  %36 = load i64, ptr %35, align 8, !tbaa !32
  %37 = icmp ult i64 %36, 32
  %. = select i1 %37, i32 3, i32 5
  %38 = getelementptr inbounds i8, ptr %24, i64 76
  %39 = load i32, ptr %38, align 4, !tbaa !33
  %40 = icmp eq i32 %39, %.
  br label %59

41:                                               ; preds = %26
  %42 = icmp eq i32 %31, %28
  br i1 %42, label %43, label %59

43:                                               ; preds = %41
  %44 = getelementptr inbounds i8, ptr %24, i64 76
  %45 = load i32, ptr %44, align 4, !tbaa !33
  %46 = icmp eq i32 %45, 0
  br label %59

47:                                               ; preds = %22
  %48 = getelementptr inbounds i8, ptr %24, i64 72
  %49 = load i32, ptr %48, align 8, !tbaa !26
  %50 = getelementptr i8, ptr %24, i64 -16
  %51 = load i32, ptr %50, align 8, !tbaa !26
  %52 = icmp eq i32 %49, %51
  br i1 %52, label %53, label %59

53:                                               ; preds = %47
  %54 = getelementptr inbounds i8, ptr %24, i64 76
  %55 = load i32, ptr %54, align 4, !tbaa !33
  %56 = getelementptr i8, ptr %24, i64 -12
  %57 = load i32, ptr %56, align 4, !tbaa !33
  %58 = icmp eq i32 %55, %57
  br label %59

59:                                               ; preds = %34, %32, %43, %41, %53, %47, %14
  %.1 = phi i1 [ false, %14 ], [ false, %32 ], [ %40, %34 ], [ false, %41 ], [ %46, %43 ], [ false, %47 ], [ %58, %53 ]
  ret i1 %.1

60:                                               ; preds = %14, %12
  %61 = landingpad { ptr, i32 }
          catch ptr null
  %62 = extractvalue { ptr, i32 } %61, 0
  tail call void @__clang_call_terminate(ptr %62) #7
  unreachable

63:                                               ; preds = %6
  tail call void @__clang_call_terminate(ptr %8) #7
  unreachable
}

attributes #0 = { noreturn "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 = { nofree nosync nounwind memory(none) }
attributes #2 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }
attributes #7 = { noreturn 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, !24, i64 144}
!6 = !{!"_ZTSN8nvinfer16plugin4bert26SkipLayerNormPluginDynamicE", !7, i64 0, !10, i64 8, !10, i64 40, !16, i64 72, !16, i64 80, !15, i64 88, !22, i64 96, !22, i64 120, !24, i64 144, !24, i64 148, !25, i64 152, !16, i64 160, !22, i64 168, !15, i64 192}
!7 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !9, i64 0}
!9 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !15, i64 8, !13, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"long", !13, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !12, i64 0}
!22 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer17WeightsE", !24, i64 0, !12, i64 8, !15, i64 16}
!24 = !{!"_ZTSN8nvinfer18DataTypeE", !13, i64 0}
!25 = !{!"bool", !13, i64 0}
!26 = !{!27, !24, i64 72}
!27 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !28, i64 0, !24, i64 72, !30, i64 76, !31, i64 80}
!28 = !{!"_ZTSN8nvinfer16Dims64E", !29, i64 0, !13, i64 8}
!29 = !{!"int", !13, i64 0}
!30 = !{!"_ZTSN8nvinfer112TensorFormatE", !13, i64 0}
!31 = !{!"float", !13, i64 0}
!32 = !{!6, !15, i64 88}
!33 = !{!27, !30, i64 76}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass