; LLVM IR from gem5/gem5 :: ext/mcpat/xmlParser.ll (ZN7XMLNode8addChildES_i)

; 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.XMLNode = type { ptr }
%"struct.XMLNode::XMLNodeDataTag" = type { ptr, i32, i32, i32, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, i32 }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7XMLNode10addToOrderEiPiiPvi14XMLElementType(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7XMLNode16detachFromParentEPNS_14XMLNodeDataTagE(ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7XMLNode8addChildES_i(ptr dead_on_unwind noalias writable sret(%struct.XMLNode) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2, i32 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %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 %struct.XMLNode, align 8
  %13 = alloca %struct.XMLNode, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %16 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %17 = getelementptr inbounds %struct.XMLNode, ptr %2, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  store ptr %18, ptr %9, align 8, !tbaa !5
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %25

21:                                               ; preds = %4
  %22 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = icmp ne ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %21, %4
  call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2)
  store i32 1, ptr %10, align 4
  br label %113

26:                                               ; preds = %21
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = icmp ne ptr %29, null
  br i1 %30, label %56, label %31

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  %32 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %32, ptr %11, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %54, %31
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !15
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %55

38:                                               ; preds = %33
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  %42 = getelementptr inbounds %struct.XMLNode, ptr %41, i64 0
  call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %42)
  %43 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN7XMLNode8addChildES_i(ptr dead_on_unwind writable sret(%struct.XMLNode) align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %13, i32 noundef %43)
          to label %44 unwind label %50

44:                                               ; preds = %38
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #2
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #2
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = icmp sge i32 %45, 0
  br i1 %46, label %47, label %54

47:                                               ; preds = %44
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %11, align 4, !tbaa !9
  br label %54

50:                                               ; preds = %38
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %14, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %15, align 4
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  br label %114

54:                                               ; preds = %47, %44
  br label %33, !llvm.loop !17

55:                                               ; preds = %33
  call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2)
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  br label %113

56:                                               ; preds = %26
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !19
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %77

61:                                               ; preds = %56
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = call noundef i32 @_ZN7XMLNode16detachFromParentEPNS_14XMLNodeDataTagE(ptr noundef %62)
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = icmp sle i32 %63, %64
  br i1 %65, label %66, label %76

66:                                               ; preds = %61
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %67, i32 0, i32 6
  %69 = load ptr, ptr %68, align 8, !tbaa !19
  %70 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = icmp eq ptr %69, %71
  br i1 %72, label %73, label %76

73:                                               ; preds = %66
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %8, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %73, %66, %61
  br label %82

77:                                               ; preds = %56
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %78, i32 0, i32 12
  %80 = load i32, ptr %79, align 8, !tbaa !20
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %79, align 8, !tbaa !20
  br label %82

82:                                               ; preds = %77, %76
  %83 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %85, i32 0, i32 6
  store ptr %84, ptr %86, align 8, !tbaa !19
  %87 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !15
  %91 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %92, i32 0, i32 7
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  %95 = call noundef ptr @_ZN7XMLNode10addToOrderEiPiiPvi14XMLElementType(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0, ptr noundef %8, i32 noundef %90, ptr noundef %94, i32 noundef 8, i32 noundef 0)
  %96 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %97, i32 0, i32 7
  store ptr %95, ptr %98, align 8, !tbaa !16
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %101, i32 0, i32 7
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.XMLNode, ptr %103, i64 %105
  %107 = getelementptr inbounds %struct.XMLNode, ptr %106, i32 0, i32 0
  store ptr %99, ptr %107, align 8, !tbaa !11
  %108 = getelementptr inbounds %struct.XMLNode, ptr %16, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = getelementptr inbounds %"struct.XMLNode::XMLNodeDataTag", ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !15
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %110, align 8, !tbaa !15
  call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2)
  store i32 1, ptr %10, align 4
  br label %113

113:                                              ; preds = %82, %55, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  ret void

114:                                              ; preds = %50
  %115 = load ptr, ptr %14, align 8
  %116 = load i32, ptr %15, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

declare void @_ZN7XMLNodeD1Ev(ptr)

declare void @_ZN7XMLNodeC1ERKS_(ptr, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !6, i64 0}
!12 = !{!"_ZTS7XMLNode", !6, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN7XMLNode14XMLNodeDataTagE", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80}
!15 = !{!14, !10, i64 8}
!16 = !{!14, !6, i64 40}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!14, !6, i64 32}
!20 = !{!14, !10, i64 80}


; 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.XMLNode = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7XMLNode10addToOrderEiPiiPvi14XMLElementType(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7XMLNode16detachFromParentEPNS_14XMLNodeDataTagE(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7XMLNode8addChildES_i(ptr dead_on_unwind noalias writable sret(%struct.XMLNode) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca %struct.XMLNode, align 8
  %7 = alloca %struct.XMLNode, align 8
  store i32 %3, ptr %5, align 4, !tbaa !5
  %8 = load ptr, ptr %2, align 8, !tbaa !9
  %.not = icmp eq ptr %8, null
  %9 = load ptr, ptr %1, align 8
  %.not16 = icmp eq ptr %9, null
  %or.cond = select i1 %.not, i1 true, i1 %.not16
  br i1 %or.cond, label %10, label %11

10:                                               ; preds = %4
  tail call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %54

11:                                               ; preds = %4
  %12 = load ptr, ptr %8, align 8, !tbaa !12
  %.not17 = icmp eq ptr %12, null
  br i1 %.not17, label %.preheader, label %24

.preheader:                                       ; preds = %11
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !14
  %.not1821 = icmp eq i32 %14, 0
  br i1 %.not1821, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %15 = getelementptr inbounds i8, ptr %8, i64 40
  %16 = icmp sgt i32 %3, -1
  %17 = zext i1 %16 to i32
  br label %18

18:                                               ; preds = %.lr.ph, %20
  %.022 = phi i32 [ %3, %.lr.ph ], [ %spec.select, %20 ]
  %19 = load ptr, ptr %15, align 8, !tbaa !15
  call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %19)
  invoke void @_ZN7XMLNode8addChildES_i(ptr dead_on_unwind nonnull writable sret(%struct.XMLNode) align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %7, i32 noundef %.022)
          to label %20 unwind label %22

20:                                               ; preds = %18
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #1
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #1
  %spec.select = add nsw i32 %.022, %17
  %21 = load i32, ptr %13, align 8, !tbaa !14
  %.not18 = icmp eq i32 %21, 0
  br i1 %.not18, label %._crit_edge, label %18, !llvm.loop !16

22:                                               ; preds = %18
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #1
  resume { ptr, i32 } %23

._crit_edge:                                      ; preds = %20, %.preheader
  call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %54

24:                                               ; preds = %11
  %25 = getelementptr inbounds i8, ptr %8, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %.not19 = icmp eq ptr %26, null
  br i1 %.not19, label %34, label %27

27:                                               ; preds = %24
  %28 = tail call noundef i32 @_ZN7XMLNode16detachFromParentEPNS_14XMLNodeDataTagE(ptr noundef nonnull %8)
  %.not20 = icmp sgt i32 %28, %3
  %.pre = load ptr, ptr %1, align 8, !tbaa !9
  br i1 %.not20, label %38, label %29

29:                                               ; preds = %27
  %30 = load ptr, ptr %25, align 8, !tbaa !18
  %31 = icmp eq ptr %30, %.pre
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = add nsw i32 %3, -1
  store i32 %33, ptr %5, align 4, !tbaa !5
  br label %38

34:                                               ; preds = %24
  %35 = getelementptr inbounds i8, ptr %8, i64 80
  %36 = load i32, ptr %35, align 8, !tbaa !19
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 8, !tbaa !19
  br label %38

38:                                               ; preds = %27, %29, %32, %34
  %39 = phi ptr [ %.pre, %27 ], [ %.pre, %29 ], [ %.pre, %32 ], [ %9, %34 ]
  store ptr %39, ptr %25, align 8, !tbaa !18
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !14
  %42 = getelementptr inbounds i8, ptr %39, i64 40
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = call noundef ptr @_ZN7XMLNode10addToOrderEiPiiPvi14XMLElementType(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0, ptr noundef nonnull %5, i32 noundef %41, ptr noundef %43, i32 noundef 8, i32 noundef 0)
  %45 = load ptr, ptr %1, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %45, i64 40
  store ptr %44, ptr %46, align 8, !tbaa !15
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.XMLNode, ptr %44, i64 %48
  store ptr %8, ptr %49, align 8, !tbaa !9
  %50 = load ptr, ptr %1, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !14
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 8, !tbaa !14
  call void @_ZN7XMLNodeC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %54

54:                                               ; preds = %38, %._crit_edge, %10
  ret void
}

declare void @_ZN7XMLNodeD1Ev(ptr) local_unnamed_addr

declare void @_ZN7XMLNodeC1ERKS_(ptr, ptr) local_unnamed_addr

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7XMLNode", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTSN7XMLNode14XMLNodeDataTagE", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !7, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !6, i64 80}
!14 = !{!13, !6, i64 8}
!15 = !{!13, !11, i64 40}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!13, !11, i64 32}
!19 = !{!13, !6, i64 80}


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