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

; 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.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3" = type { %"class.nvinfer1::v_1_0::IPluginV3", %"class.nvinfer1::v_1_0::IPluginV3OneCore", %"class.nvinfer1::v_1_0::IPluginV3OneBuild", %"class.nvinfer1::v_1_0::IPluginV3OneRuntime", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", %"class.std::unique_ptr", i32, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, i8, %"class.std::unique_ptr", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i64, %"class.std::vector", %"struct.nvinfer1::PluginFieldCollection" }
%"class.nvinfer1::v_1_0::IPluginV3" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::IVersionedInterface" = type { ptr }
%"class.nvinfer1::v_1_0::IPluginV3OneCore" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginCapability" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::v_1_0::IPluginV3OneBuild" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginV3OneRuntime" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.nvinfer1::PluginFieldCollection" = type { i32, ptr }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i = external hidden unnamed_addr constant [14 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [61 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) #1

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

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

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

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

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef, ptr noundef, ptr noundef) #5

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

20:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 886, i32 noundef 0, ptr noundef @.str.10) #7
          to label %21 unwind label %22

21:                                               ; preds = %20
  unreachable

22:                                               ; preds = %100, %84, %67, %57, %39, %34, %29, %20
  %23 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %12, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %13, align 4
  br label %123

26:                                               ; preds = %5
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %31, label %29

29:                                               ; preds = %26
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 887, i32 noundef 0, ptr noundef @.str.35) #7
          to label %30 unwind label %22

30:                                               ; preds = %29
  unreachable

31:                                               ; preds = %26
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %36, label %34

34:                                               ; preds = %31
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 888, i32 noundef 0, ptr noundef @.str.14) #7
          to label %35 unwind label %22

35:                                               ; preds = %34
  unreachable

36:                                               ; preds = %31
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %41, label %39

39:                                               ; preds = %36
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 889, i32 noundef 0, ptr noundef @.str.11) #7
          to label %40 unwind label %22

40:                                               ; preds = %39
  unreachable

41:                                               ; preds = %36
  %42 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 11
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %49, label %45

45:                                               ; preds = %41
  %46 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 11
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %49, label %70

49:                                               ; preds = %45, %41
  %50 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 11
  %51 = load i32, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %52, i64 0
  %54 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !37
  %56 = icmp eq i32 %51, %55
  br i1 %56, label %59, label %57

57:                                               ; preds = %49
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 893, i32 noundef 0, ptr noundef @.str.36) #7
          to label %58 unwind label %22

58:                                               ; preds = %57
  unreachable

59:                                               ; preds = %49
  %60 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 11
  %61 = load i32, ptr %60, align 8, !tbaa !11
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %62, i64 1
  %64 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !37
  %66 = icmp eq i32 %61, %65
  br i1 %66, label %69, label %67

67:                                               ; preds = %59
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 894, i32 noundef 0, ptr noundef @.str.37) #7
          to label %68 unwind label %22

68:                                               ; preds = %67
  unreachable

69:                                               ; preds = %59
  br label %103

70:                                               ; preds = %45
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 11
  %72 = load i32, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %73, i64 0
  %75 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !37
  %77 = icmp eq i32 %72, %76
  br i1 %77, label %86, label %78

78:                                               ; preds = %70
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %79, i64 0
  %81 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !37
  %83 = icmp eq i32 0, %82
  br i1 %83, label %86, label %84

84:                                               ; preds = %78
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 898, i32 noundef 0, ptr noundef @.str.38) #7
          to label %85 unwind label %22

85:                                               ; preds = %84
  unreachable

86:                                               ; preds = %78, %70
  %87 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 11
  %88 = load i32, ptr %87, align 8, !tbaa !11
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %89, i64 1
  %91 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 8, !tbaa !37
  %93 = icmp eq i32 %88, %92
  br i1 %93, label %102, label %94

94:                                               ; preds = %86
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %95, i64 1
  %97 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %96, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !37
  %99 = icmp eq i32 0, %98
  br i1 %99, label %102, label %100

100:                                              ; preds = %94
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 899, i32 noundef 0, ptr noundef @.str.39) #7
          to label %101 unwind label %22

101:                                              ; preds = %100
  unreachable

102:                                              ; preds = %94, %86
  br label %103

103:                                              ; preds = %102, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %104, i64 0
  %106 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %105, i32 0, i32 0
  store ptr %106, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %107, i64 1
  %109 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %108, i32 0, i32 0
  store ptr %109, ptr %15, align 8, !tbaa !5
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !42
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !42
  %116 = icmp eq i32 %112, %115
  br i1 %116, label %134, label %117

117:                                              ; preds = %103
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 903, i32 noundef 0, ptr noundef @.str.40) #7
          to label %118 unwind label %119

118:                                              ; preds = %117
  unreachable

119:                                              ; preds = %151, %134, %117
  %120 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %123

123:                                              ; preds = %119, %22
  %124 = load i32, ptr %13, align 4
  %125 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %126 = icmp eq i32 %124, %125
  br i1 %126, label %127, label %178

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %128 = load ptr, ptr %12, align 8
  %129 = call ptr @__cxa_begin_catch(ptr %128) #8
  store ptr %129, ptr %16, align 8
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %130)
          to label %131 unwind label %175

131:                                              ; preds = %127
  invoke void @__cxa_end_catch()
          to label %132 unwind label %175

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

133:                                              ; preds = %132
  store i32 1, ptr %6, align 4
  br label %173

134:                                              ; preds = %103
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %135, i32 0, i32 1
  %137 = getelementptr inbounds [8 x i64], ptr %136, i64 0, i64 0
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %138, i32 0, i32 1
  %140 = getelementptr inbounds [8 x i64], ptr %139, i64 0, i64 0
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !42
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i64, ptr %140, i64 %144
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %146, i32 0, i32 1
  %148 = getelementptr inbounds [8 x i64], ptr %147, i64 0, i64 0
  %149 = invoke noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef %137, ptr noundef %145, ptr noundef %148)
          to label %150 unwind label %119

150:                                              ; preds = %134
  br i1 %149, label %153, label %151

151:                                              ; preds = %150
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef 905, i32 noundef 0, ptr noundef @.str.41) #7
          to label %152 unwind label %119

152:                                              ; preds = %151
  unreachable

153:                                              ; preds = %150
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %154, i64 0
  %156 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 8, !tbaa !37
  %158 = icmp eq i32 %157, 2
  br i1 %158, label %159, label %160

159:                                              ; preds = %153
  br label %165

160:                                              ; preds = %153
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %161, i64 0
  %163 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !37
  br label %165

165:                                              ; preds = %160, %159
  %166 = phi i32 [ 1, %159 ], [ %164, %160 ]
  %167 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 12
  store i32 %166, ptr %167, align 4, !tbaa !43
  %168 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 12
  %169 = load i32, ptr %168, align 4, !tbaa !43
  %170 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %169) #8
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %17, i32 0, i32 16
  store i64 %171, ptr %172, align 8, !tbaa !44
  store i32 0, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %173

173:                                              ; preds = %165, %133
  %174 = load i32, ptr %6, align 4
  ret i32 %174

175:                                              ; preds = %131, %127
  %176 = landingpad { ptr, i32 }
          catch ptr null
  %177 = extractvalue { ptr, i32 } %176, 0
  call void @__clang_call_terminate(ptr %177) #9
  unreachable

178:                                              ; preds = %123
  %179 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %179) #9
  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 = { inlinehint 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { noreturn }
attributes #8 = { nounwind }
attributes #9 = { 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, !30, i64 168}
!12 = !{!"_ZTSN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E", !13, i64 0, !15, i64 8, !17, i64 16, !18, i64 24, !19, i64 32, !19, i64 64, !22, i64 96, !22, i64 104, !10, i64 112, !28, i64 120, !28, i64 144, !30, i64 168, !30, i64 172, !31, i64 176, !22, i64 184, !28, i64 192, !21, i64 216, !32, i64 224, !36, i64 248}
!13 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!15 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !14, i64 0}
!17 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !16, i64 0}
!18 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !16, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !25, i64 0}
!25 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !26, i64 0}
!26 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !27, i64 0}
!27 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!28 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !29, i64 0}
!29 = !{!"_ZTSN8nvinfer17WeightsE", !30, i64 0, !6, i64 8, !21, i64 16}
!30 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !10, i64 0, !6, i64 8}
!37 = !{!38, !30, i64 72}
!38 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !39, i64 0, !30, i64 72, !40, i64 76, !41, i64 80}
!39 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!40 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!41 = !{!"float", !7, i64 0}
!42 = !{!39, !10, i64 0}
!43 = !{!12, !30, i64 172}
!44 = !{!12, !21, i64 216}


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

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i = external hidden unnamed_addr constant [14 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [61 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nosync 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) local_unnamed_addr #3

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 #4

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

6:                                                ; preds = %.invoke
  %7 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %40

8:                                                ; preds = %5
  %.not34 = icmp eq ptr %3, null
  br i1 %.not34, label %.invoke, label %9

9:                                                ; preds = %8
  %10 = icmp eq i32 %4, 1
  br i1 %10, label %11, label %.invoke

11:                                               ; preds = %9
  %12 = icmp eq i32 %2, 2
  br i1 %12, label %13, label %.invoke

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 168
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %switch = icmp ult i32 %15, 2
  %16 = getelementptr inbounds i8, ptr %1, i64 72
  %17 = load i32, ptr %16, align 8, !tbaa !35
  %18 = icmp eq i32 %15, %17
  br i1 %switch, label %19, label %24

19:                                               ; preds = %13
  br i1 %18, label %20, label %.invoke

20:                                               ; preds = %19
  %21 = getelementptr inbounds i8, ptr %1, i64 160
  %22 = load i32, ptr %21, align 8, !tbaa !35
  %23 = icmp eq i32 %15, %22
  br i1 %23, label %33, label %.invoke

24:                                               ; preds = %13
  %25 = icmp eq i32 %17, 0
  %or.cond = or i1 %18, %25
  br i1 %or.cond, label %26, label %.invoke

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %1, i64 160
  %28 = load i32, ptr %27, align 8, !tbaa !35
  %29 = icmp eq i32 %15, %28
  %30 = icmp eq i32 %28, 0
  %or.cond36 = or i1 %29, %30
  br i1 %or.cond36, label %33, label %.invoke

.invoke:                                          ; preds = %5, %26, %24, %20, %19, %11, %9, %8
  %31 = phi i32 [ 887, %8 ], [ 888, %9 ], [ 889, %11 ], [ 893, %19 ], [ 894, %20 ], [ 898, %24 ], [ 899, %26 ], [ 886, %5 ]
  %32 = phi ptr [ @.str.35, %8 ], [ @.str.14, %9 ], [ @.str.11, %11 ], [ @.str.36, %19 ], [ @.str.37, %20 ], [ @.str.38, %24 ], [ @.str.39, %26 ], [ @.str.10, %5 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef %31, i32 noundef 0, ptr noundef nonnull %32) #6
          to label %.cont unwind label %6

.cont:                                            ; preds = %.invoke
  unreachable

33:                                               ; preds = %26, %20
  %34 = getelementptr inbounds i8, ptr %1, i64 88
  %35 = load i32, ptr %1, align 8, !tbaa !40
  %36 = load i32, ptr %34, align 8, !tbaa !40
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %46, label %.invoke37

38:                                               ; preds = %.invoke37, %46
  %39 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %40

40:                                               ; preds = %38, %6
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %7, %6 ]
  %.025 = extractvalue { ptr, i32 } %.pn, 0
  %.026 = extractvalue { ptr, i32 } %.pn, 1
  %41 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %42 = icmp eq i32 %.026, %41
  br i1 %42, label %43, label %67

43:                                               ; preds = %40
  %44 = tail call ptr @__cxa_begin_catch(ptr %.025) #7
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %45 unwind label %64

45:                                               ; preds = %43
  invoke void @__cxa_end_catch()
          to label %63 unwind label %64

46:                                               ; preds = %33
  %47 = getelementptr inbounds i8, ptr %1, i64 8
  %48 = sext i32 %35 to i64
  %49 = getelementptr inbounds i64, ptr %47, i64 %48
  %50 = getelementptr inbounds i8, ptr %1, i64 96
  %51 = invoke noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef nonnull %47, ptr noundef nonnull %49, ptr noundef nonnull %50)
          to label %52 unwind label %38

52:                                               ; preds = %46
  br i1 %51, label %55, label %.invoke37

.invoke37:                                        ; preds = %33, %52
  %53 = phi i32 [ 905, %52 ], [ 903, %33 ]
  %54 = phi ptr [ @.str.41, %52 ], [ @.str.40, %33 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV313onShapeChangeEPKNS_16PluginTensorDescEiS5_i, i32 noundef %53, i32 noundef 0, ptr noundef nonnull %54) #6
          to label %.cont38 unwind label %38

.cont38:                                          ; preds = %.invoke37
  unreachable

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %1, i64 72
  %57 = load i32, ptr %56, align 8, !tbaa !35
  %58 = icmp eq i32 %57, 2
  %spec.select = select i1 %58, i32 1, i32 %57
  %59 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 %spec.select, ptr %59, align 4, !tbaa !41
  %60 = tail call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %spec.select) #7
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i8, ptr %0, i64 216
  store i64 %61, ptr %62, align 8, !tbaa !42
  br label %63

63:                                               ; preds = %45, %55
  %.0 = phi i32 [ 0, %55 ], [ 1, %45 ]
  ret i32 %.0

64:                                               ; preds = %45, %43
  %65 = landingpad { ptr, i32 }
          catch ptr null
  %66 = extractvalue { ptr, i32 } %65, 0
  tail call void @__clang_call_terminate(ptr %66) #8
  unreachable

67:                                               ; preds = %40
  tail call void @__clang_call_terminate(ptr %.025) #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 = { inlinehint 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 #2 = { nofree nosync 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, !28, i64 168}
!6 = !{!"_ZTSN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E", !7, i64 0, !9, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !13, i64 64, !19, i64 96, !19, i64 104, !25, i64 112, !26, i64 120, !26, i64 144, !28, i64 168, !28, i64 172, !29, i64 176, !19, i64 184, !26, i64 192, !18, i64 216, !30, i64 224, !34, i64 248}
!7 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!9 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !10, i64 0}
!10 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !8, i64 0}
!11 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !10, i64 0}
!12 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !10, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !18, i64 8, !16, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !17, i64 0}
!17 = !{!"Simple C++ TBAA"}
!18 = !{!"long", !16, 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", !15, i64 0}
!25 = !{!"int", !16, i64 0}
!26 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !27, i64 0}
!27 = !{!"_ZTSN8nvinfer17WeightsE", !28, i64 0, !15, i64 8, !18, i64 16}
!28 = !{!"_ZTSN8nvinfer18DataTypeE", !16, i64 0}
!29 = !{!"bool", !16, i64 0}
!30 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!34 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !25, i64 0, !15, i64 8}
!35 = !{!36, !28, i64 72}
!36 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !37, i64 0, !28, i64 72, !38, i64 76, !39, i64 80}
!37 = !{!"_ZTSN8nvinfer16Dims64E", !25, i64 0, !16, i64 8}
!38 = !{!"_ZTSN8nvinfer112TensorFormatE", !16, i64 0}
!39 = !{!"float", !16, i64 0}
!40 = !{!37, !25, i64 0}
!41 = !{!6, !28, i64 172}
!42 = !{!6, !18, i64 216}


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