; 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::SkipLayerNormVarSeqlenPlugin" = 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 @_ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPlugin25supportsFormatCombinationEiPKNS_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 689, 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 %117

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 %114

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

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 %112

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 690, 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 691, 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 692, 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 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %19, i32 0, i32 8
  %66 = load i32, ptr %65, align 8, !tbaa !11
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !29
  %70 = icmp ne i32 %66, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %60
  store i1 false, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %111

72:                                               ; preds = %60
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %98

75:                                               ; preds = %72
  %76 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %19, i32 0, i32 8
  %77 = load i32, ptr %76, align 8, !tbaa !11
  %78 = icmp eq i32 %77, 2
  br i1 %78, label %79, label %93

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 5, ptr %16, align 4, !tbaa !34
  %80 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %19, i32 0, i32 5
  %81 = load i64, ptr %80, align 8, !tbaa !35
  %82 = icmp ult i64 %81, 32
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  store i32 3, ptr %16, align 4, !tbaa !34
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %19, i32 0, i32 5
  br label %87

85:                                               ; preds = %79
  %86 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %19, i32 0, i32 5
  br label %87

87:                                               ; preds = %85, %83
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 4, !tbaa !36
  %91 = load i32, ptr %16, align 4, !tbaa !34
  %92 = icmp eq i32 %90, %91
  store i1 %92, ptr %6, align 1
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %111

93:                                               ; preds = %75
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 4, !tbaa !36
  %97 = icmp eq i32 %96, 0
  store i1 %97, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %111

98:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sub nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %99, i64 %102
  store ptr %103, ptr %17, align 8, !tbaa !5
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 4, !tbaa !36
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 4, !tbaa !36
  %110 = icmp eq i32 %106, %109
  store i1 %110, ptr %6, align 1
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %111

111:                                              ; preds = %98, %93, %87, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %112

112:                                              ; preds = %111, %38
  %113 = load i1, ptr %6, align 1
  ret i1 %113

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

117:                                              ; preds = %28
  %118 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %118) #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 = !{!"_ZTSN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE", !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, !27, i64 72}
!30 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !31, i64 0, !27, i64 72, !32, i64 76, !33, i64 80}
!31 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!32 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!33 = !{!"float", !7, i64 0}
!34 = !{!32, !32, i64 0}
!35 = !{!12, !18, i64 88}
!36 = !{!30, !32, 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 @_ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPlugin25supportsFormatCombinationEiPKNS_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 %54

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 %51

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

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 [ 690, %15 ], [ 691, %17 ], [ 692, %19 ], [ 689, %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 inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %2, i64 %23
  %25 = getelementptr inbounds i8, ptr %0, i64 144
  %26 = load i32, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %24, i64 72
  %28 = load i32, ptr %27, align 8, !tbaa !26
  %.not29 = icmp eq i32 %26, %28
  br i1 %.not29, label %29, label %50

29:                                               ; preds = %22
  %30 = icmp eq i32 %1, 0
  br i1 %30, label %31, label %44

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

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

40:                                               ; preds = %31
  %41 = getelementptr inbounds i8, ptr %24, i64 76
  %42 = load i32, ptr %41, align 4, !tbaa !33
  %43 = icmp eq i32 %42, 0
  br label %50

44:                                               ; preds = %29
  %45 = getelementptr inbounds i8, ptr %24, i64 76
  %46 = load i32, ptr %45, align 4, !tbaa !33
  %47 = getelementptr i8, ptr %24, i64 -12
  %48 = load i32, ptr %47, align 4, !tbaa !33
  %49 = icmp eq i32 %46, %48
  br label %50

50:                                               ; preds = %33, %40, %44, %22, %14
  %.1 = phi i1 [ false, %14 ], [ %39, %33 ], [ %43, %40 ], [ %49, %44 ], [ false, %22 ]
  ret i1 %.1

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

54:                                               ; 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 = !{!"_ZTSN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE", !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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass