; LLVM IR from libtcod/libtcod :: src/libtcod (heightmap_c)

; 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.TCOD_heightmap_t = type { i32, i32, ptr }

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @TCOD_heightmap_get_minmax(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @TCOD_heightmap_normalize(ptr noundef %0, float noundef %1, float noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %15, label %14

14:                                               ; preds = %3
  br label %88

15:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store float 0.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store float 0.000000e+00, ptr %8, align 4, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  call void @TCOD_heightmap_get_minmax(ptr noundef %16, ptr noundef %7, ptr noundef %8)
  %17 = load float, ptr %8, align 4, !tbaa !9
  %18 = load float, ptr %7, align 4, !tbaa !9
  %19 = fsub float %17, %18
  %20 = fcmp olt float %19, 0x3E80000000000000
  br i1 %20, label %21, label %45

21:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %22

22:                                               ; preds = %41, %21
  %23 = load i32, ptr %9, align 4, !tbaa !11
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.TCOD_heightmap_t, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !13
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TCOD_heightmap_t, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !15
  %30 = mul nsw i32 %26, %29
  %31 = icmp ne i32 %23, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %44

33:                                               ; preds = %22
  %34 = load float, ptr %5, align 4, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.TCOD_heightmap_t, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = load i32, ptr %9, align 4, !tbaa !11
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %37, i64 %39
  store float %34, ptr %40, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %33
  %42 = load i32, ptr %9, align 4, !tbaa !11
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %9, align 4, !tbaa !11
  br label %22, !llvm.loop !17

44:                                               ; preds = %32
  br label %87

45:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %46 = load float, ptr %6, align 4, !tbaa !9
  %47 = load float, ptr %5, align 4, !tbaa !9
  %48 = fsub float %46, %47
  %49 = load float, ptr %8, align 4, !tbaa !9
  %50 = load float, ptr %7, align 4, !tbaa !9
  %51 = fsub float %49, %50
  %52 = fdiv float %48, %51
  store float %52, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %53

53:                                               ; preds = %83, %45
  %54 = load i32, ptr %11, align 4, !tbaa !11
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.TCOD_heightmap_t, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !13
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.TCOD_heightmap_t, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !15
  %61 = mul nsw i32 %57, %60
  %62 = icmp ne i32 %54, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %86

64:                                               ; preds = %53
  %65 = load float, ptr %5, align 4, !tbaa !9
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.TCOD_heightmap_t, ptr %66, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load i32, ptr %11, align 4, !tbaa !11
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %68, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = load float, ptr %7, align 4, !tbaa !9
  %74 = fsub float %72, %73
  %75 = load float, ptr %10, align 4, !tbaa !9
  %76 = call float @llvm.fmuladd.f32(float %74, float %75, float %65)
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.TCOD_heightmap_t, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = load i32, ptr %11, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %79, i64 %81
  store float %76, ptr %82, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %64
  %84 = load i32, ptr %11, align 4, !tbaa !11
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %11, align 4, !tbaa !11
  br label %53, !llvm.loop !19

86:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %87

87:                                               ; preds = %86, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %88

88:                                               ; preds = %87, %14
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4, !6, i64 8}
!15 = !{!14, !12, i64 4}
!16 = !{!14, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @TCOD_heightmap_get_minmax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @TCOD_heightmap_normalize(ptr noundef %0, float noundef %1, float noundef %2) local_unnamed_addr #1 {
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %57, label %6

6:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store float 0.000000e+00, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  call void @TCOD_heightmap_get_minmax(ptr noundef nonnull %0, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %7 = load float, ptr %5, align 4, !tbaa !5
  %8 = load float, ptr %4, align 4, !tbaa !5
  %9 = fsub float %7, %8
  %10 = fcmp olt float %9, 0x3E80000000000000
  br i1 %10, label %.preheader, label %22

.preheader:                                       ; preds = %6
  %11 = load i32, ptr %0, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !13
  %14 = mul nsw i32 %13, %11
  %.not2428 = icmp eq i32 %14, 0
  br i1 %.not2428, label %.loopexit, label %.lr.ph30

.lr.ph30:                                         ; preds = %.preheader
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = zext i32 %14 to i64
  %min.iters.check48 = icmp ult i32 %14, 8
  br i1 %min.iters.check48, label %scalar.ph47.preheader, label %vector.ph49

vector.ph49:                                      ; preds = %.lr.ph30
  %n.vec51 = and i64 %17, 4294967288
  %broadcast.splatinsert = insertelement <4 x float> poison, float %1, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body53

vector.body53:                                    ; preds = %vector.body53, %vector.ph49
  %index54 = phi i64 [ 0, %vector.ph49 ], [ %index.next55, %vector.body53 ]
  %18 = getelementptr inbounds float, ptr %16, i64 %index54
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x float> %broadcast.splat, ptr %18, align 4, !tbaa !5
  store <4 x float> %broadcast.splat, ptr %19, align 4, !tbaa !5
  %index.next55 = add nuw i64 %index54, 8
  %20 = icmp eq i64 %index.next55, %n.vec51
  br i1 %20, label %middle.block46, label %vector.body53, !llvm.loop !15

middle.block46:                                   ; preds = %vector.body53
  %cmp.n56 = icmp eq i64 %n.vec51, %17
  br i1 %cmp.n56, label %.loopexit, label %scalar.ph47.preheader

scalar.ph47.preheader:                            ; preds = %middle.block46, %.lr.ph30
  %indvars.iv33.ph = phi i64 [ 0, %.lr.ph30 ], [ %n.vec51, %middle.block46 ]
  br label %scalar.ph47

scalar.ph47:                                      ; preds = %scalar.ph47.preheader, %scalar.ph47
  %indvars.iv33 = phi i64 [ %indvars.iv.next34, %scalar.ph47 ], [ %indvars.iv33.ph, %scalar.ph47.preheader ]
  %21 = getelementptr inbounds float, ptr %16, i64 %indvars.iv33
  store float %1, ptr %21, align 4, !tbaa !5
  %indvars.iv.next34 = add nuw nsw i64 %indvars.iv33, 1
  %.not24 = icmp eq i64 %indvars.iv.next34, %17
  br i1 %.not24, label %.loopexit, label %scalar.ph47, !llvm.loop !19

22:                                               ; preds = %6
  %23 = fsub float %2, %1
  %24 = fdiv float %23, %9
  %25 = load i32, ptr %0, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %0, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !13
  %28 = mul nsw i32 %27, %25
  %.not2326 = icmp eq i32 %28, 0
  br i1 %.not2326, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = zext i32 %28 to i64
  %min.iters.check = icmp ult i32 %28, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %32 = shl nuw nsw i64 %31, 2
  %scevgep = getelementptr i8, ptr %30, i64 %32
  %scevgep38 = getelementptr inbounds i8, ptr %4, i64 4
  %bound0 = icmp ult ptr %30, %scevgep38
  %bound1 = icmp ult ptr %4, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %31, 4294967288
  %broadcast.splatinsert42 = insertelement <4 x float> poison, float %24, i64 0
  %broadcast.splat43 = shufflevector <4 x float> %broadcast.splatinsert42, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert44 = insertelement <4 x float> poison, float %1, i64 0
  %broadcast.splat45 = shufflevector <4 x float> %broadcast.splatinsert44, <4 x float> poison, <4 x i32> zeroinitializer
  %33 = load float, ptr %4, align 4, !tbaa !5, !alias.scope !20
  %broadcast.splatinsert40 = insertelement <4 x float> poison, float %33, i64 0
  %broadcast.splat41 = shufflevector <4 x float> %broadcast.splatinsert40, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %34 = getelementptr inbounds float, ptr %30, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %wide.load = load <4 x float>, ptr %34, align 4, !tbaa !5, !alias.scope !23, !noalias !20
  %wide.load39 = load <4 x float>, ptr %35, align 4, !tbaa !5, !alias.scope !23, !noalias !20
  %36 = fsub <4 x float> %wide.load, %broadcast.splat41
  %37 = fsub <4 x float> %wide.load39, %broadcast.splat41
  %38 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %36, <4 x float> %broadcast.splat43, <4 x float> %broadcast.splat45)
  %39 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %37, <4 x float> %broadcast.splat43, <4 x float> %broadcast.splat45)
  store <4 x float> %38, ptr %34, align 4, !tbaa !5, !alias.scope !23, !noalias !20
  store <4 x float> %39, ptr %35, align 4, !tbaa !5, !alias.scope !23, !noalias !20
  %index.next = add nuw i64 %index, 8
  %40 = icmp eq i64 %index.next, %n.vec
  br i1 %40, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %31
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %31, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %41 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.ph
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = load float, ptr %4, align 4, !tbaa !5
  %44 = fsub float %42, %43
  %45 = call float @llvm.fmuladd.f32(float %44, float %24, float %1)
  store float %45, ptr %41, align 4, !tbaa !5
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %46 = add nsw i64 %31, -1
  %47 = icmp eq i64 %indvars.iv.ph, %46
  br i1 %47, label %.loopexit, label %scalar.ph.preheader.new

scalar.ph.preheader.new:                          ; preds = %scalar.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %30, i64 4
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph, %scalar.ph.preheader.new
  %indvars.iv = phi i64 [ %indvars.iv.unr, %scalar.ph.preheader.new ], [ %indvars.iv.next.1, %scalar.ph ]
  %48 = getelementptr inbounds float, ptr %30, i64 %indvars.iv
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = load float, ptr %4, align 4, !tbaa !5
  %51 = fsub float %49, %50
  %52 = call float @llvm.fmuladd.f32(float %51, float %24, float %1)
  store float %52, ptr %48, align 4, !tbaa !5
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv
  %53 = load float, ptr %gep, align 4, !tbaa !5
  %54 = load float, ptr %4, align 4, !tbaa !5
  %55 = fsub float %53, %54
  %56 = call float @llvm.fmuladd.f32(float %55, float %24, float %1)
  store float %56, ptr %gep, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %.not23.1 = icmp eq i64 %indvars.iv.next.1, %31
  br i1 %.not23.1, label %.loopexit, label %scalar.ph, !llvm.loop !26

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %scalar.ph47, %middle.block, %middle.block46, %22, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %57

57:                                               ; preds = %3, %.loopexit
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !12, i64 8}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !18, !17}
!20 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = !{!24}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !16, !17, !18}
!26 = distinct !{!26, !16, !17}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass