; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseBackground.ll (ZN4Simd4Base18BackgroundInitMaskEPKhmmmhhPhm)

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

; 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: mustprogress nounwind uwtable
define dso_local void @_ZN4Simd4Base18BackgroundInitMaskEPKhmmmhhPhm(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i8 noundef zeroext %4, i8 noundef zeroext %5, ptr noundef %6, i64 noundef %7) #1 {
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !9
  store i64 %2, ptr %11, align 8, !tbaa !9
  store i64 %3, ptr %12, align 8, !tbaa !9
  store i8 %4, ptr %13, align 1, !tbaa !11
  store i8 %5, ptr %14, align 1, !tbaa !11
  store ptr %6, ptr %15, align 8, !tbaa !5
  store i64 %7, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %56, %8
  %21 = load i64, ptr %17, align 8, !tbaa !9
  %22 = load i64, ptr %12, align 8, !tbaa !9
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  br label %59

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %46, %25
  %27 = load i64, ptr %19, align 8, !tbaa !9
  %28 = load i64, ptr %11, align 8, !tbaa !9
  %29 = icmp ult i64 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  br label %49

31:                                               ; preds = %26
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load i64, ptr %19, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %32, i64 %33
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = zext i8 %35 to i32
  %37 = load i8, ptr %13, align 1, !tbaa !11
  %38 = zext i8 %37 to i32
  %39 = icmp eq i32 %36, %38
  br i1 %39, label %40, label %45

40:                                               ; preds = %31
  %41 = load i8, ptr %14, align 1, !tbaa !11
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = load i64, ptr %19, align 8, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %42, i64 %43
  store i8 %41, ptr %44, align 1, !tbaa !11
  br label %45

45:                                               ; preds = %40, %31
  br label %46

46:                                               ; preds = %45
  %47 = load i64, ptr %19, align 8, !tbaa !9
  %48 = add i64 %47, 1
  store i64 %48, ptr %19, align 8, !tbaa !9
  br label %26, !llvm.loop !12

49:                                               ; preds = %30
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 %50
  store ptr %52, ptr %9, align 8, !tbaa !5
  %53 = load i64, ptr %16, align 8, !tbaa !9
  %54 = load ptr, ptr %15, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 %53
  store ptr %55, ptr %15, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %49
  %57 = load i64, ptr %17, align 8, !tbaa !9
  %58 = add i64 %57, 1
  store i64 %58, ptr %17, align 8, !tbaa !9
  br label %20, !llvm.loop !14

59:                                               ; preds = %24
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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 nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @_ZN4Simd4Base18BackgroundInitMaskEPKhmmmhhPhm(ptr nocapture noundef readonly %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i8 noundef zeroext %4, i8 noundef zeroext %5, ptr nocapture noundef writeonly %6, i64 noundef %7) local_unnamed_addr #0 {
  %.not = icmp eq i64 %3, 0
  %.not23 = icmp eq i64 %2, 0
  %or.cond = or i1 %.not, %.not23
  br i1 %or.cond, label %._crit_edge22, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %8
  %9 = add i64 %3, -1
  %10 = mul i64 %9, %7
  %11 = getelementptr i8, ptr %6, i64 %10
  %scevgep = getelementptr i8, ptr %11, i64 %2
  %12 = mul i64 %9, %1
  %13 = getelementptr i8, ptr %0, i64 %12
  %scevgep26 = getelementptr i8, ptr %13, i64 %2
  %min.iters.check = icmp ult i64 %2, 8
  %bound0 = icmp ugt ptr %scevgep26, %6
  %bound1 = icmp ugt ptr %scevgep, %0
  %found.conflict = and i1 %bound0, %bound1
  %14 = or i64 %7, %1
  %15 = icmp slt i64 %14, 0
  %16 = or i1 %found.conflict, %15
  %min.iters.check28 = icmp ult i64 %2, 32
  %n.vec = and i64 %2, -32
  %broadcast.splatinsert = insertelement <16 x i8> poison, i8 %4, i64 0
  %broadcast.splat = shufflevector <16 x i8> %broadcast.splatinsert, <16 x i8> poison, <16 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %2
  %n.vec.remaining = and i64 %2, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  %n.vec93 = and i64 %2, -8
  %broadcast.splatinsert96 = insertelement <8 x i8> poison, i8 %4, i64 0
  %broadcast.splat97 = shufflevector <8 x i8> %broadcast.splatinsert96, <8 x i8> poison, <8 x i32> zeroinitializer
  %cmp.n115 = icmp eq i64 %n.vec93, %2
  %xtraiter = and i64 %2, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %17 = add i64 %2, -1
  br label %iter.check

iter.check:                                       ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.01521.us = phi i64 [ %166, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %.01620.us = phi ptr [ %164, %._crit_edge.us ], [ %0, %.preheader.us.preheader ]
  %.01719.us = phi ptr [ %165, %._crit_edge.us ], [ %6, %.preheader.us.preheader ]
  %brmerge = or i1 %min.iters.check, %16
  br i1 %brmerge, label %vec.epilog.scalar.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  br i1 %min.iters.check28, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check, %pred.store.continue91
  %index = phi i64 [ %index.next, %pred.store.continue91 ], [ 0, %vector.main.loop.iter.check ]
  %18 = or disjoint i64 %index, 16
  %19 = getelementptr inbounds i8, ptr %.01620.us, i64 %index
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %wide.load = load <16 x i8>, ptr %19, align 1, !tbaa !5, !alias.scope !8
  %wide.load29 = load <16 x i8>, ptr %20, align 1, !tbaa !5, !alias.scope !8
  %21 = icmp eq <16 x i8> %wide.load, %broadcast.splat
  %22 = icmp eq <16 x i8> %wide.load29, %broadcast.splat
  %23 = extractelement <16 x i1> %21, i64 0
  br i1 %23, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %24 = getelementptr inbounds i8, ptr %.01719.us, i64 %index
  store i8 %5, ptr %24, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %25 = extractelement <16 x i1> %21, i64 1
  br i1 %25, label %pred.store.if30, label %pred.store.continue31

pred.store.if30:                                  ; preds = %pred.store.continue
  %26 = or disjoint i64 %index, 1
  %27 = getelementptr inbounds i8, ptr %.01719.us, i64 %26
  store i8 %5, ptr %27, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue31

pred.store.continue31:                            ; preds = %pred.store.if30, %pred.store.continue
  %28 = extractelement <16 x i1> %21, i64 2
  br i1 %28, label %pred.store.if32, label %pred.store.continue33

pred.store.if32:                                  ; preds = %pred.store.continue31
  %29 = or disjoint i64 %index, 2
  %30 = getelementptr inbounds i8, ptr %.01719.us, i64 %29
  store i8 %5, ptr %30, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue33

pred.store.continue33:                            ; preds = %pred.store.if32, %pred.store.continue31
  %31 = extractelement <16 x i1> %21, i64 3
  br i1 %31, label %pred.store.if34, label %pred.store.continue35

pred.store.if34:                                  ; preds = %pred.store.continue33
  %32 = or disjoint i64 %index, 3
  %33 = getelementptr inbounds i8, ptr %.01719.us, i64 %32
  store i8 %5, ptr %33, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue35

pred.store.continue35:                            ; preds = %pred.store.if34, %pred.store.continue33
  %34 = extractelement <16 x i1> %21, i64 4
  br i1 %34, label %pred.store.if36, label %pred.store.continue37

pred.store.if36:                                  ; preds = %pred.store.continue35
  %35 = or disjoint i64 %index, 4
  %36 = getelementptr inbounds i8, ptr %.01719.us, i64 %35
  store i8 %5, ptr %36, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue37

pred.store.continue37:                            ; preds = %pred.store.if36, %pred.store.continue35
  %37 = extractelement <16 x i1> %21, i64 5
  br i1 %37, label %pred.store.if38, label %pred.store.continue39

pred.store.if38:                                  ; preds = %pred.store.continue37
  %38 = or disjoint i64 %index, 5
  %39 = getelementptr inbounds i8, ptr %.01719.us, i64 %38
  store i8 %5, ptr %39, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue39

pred.store.continue39:                            ; preds = %pred.store.if38, %pred.store.continue37
  %40 = extractelement <16 x i1> %21, i64 6
  br i1 %40, label %pred.store.if40, label %pred.store.continue41

pred.store.if40:                                  ; preds = %pred.store.continue39
  %41 = or disjoint i64 %index, 6
  %42 = getelementptr inbounds i8, ptr %.01719.us, i64 %41
  store i8 %5, ptr %42, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue41

pred.store.continue41:                            ; preds = %pred.store.if40, %pred.store.continue39
  %43 = extractelement <16 x i1> %21, i64 7
  br i1 %43, label %pred.store.if42, label %pred.store.continue43

pred.store.if42:                                  ; preds = %pred.store.continue41
  %44 = or disjoint i64 %index, 7
  %45 = getelementptr inbounds i8, ptr %.01719.us, i64 %44
  store i8 %5, ptr %45, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue43

pred.store.continue43:                            ; preds = %pred.store.if42, %pred.store.continue41
  %46 = extractelement <16 x i1> %21, i64 8
  br i1 %46, label %pred.store.if44, label %pred.store.continue45

pred.store.if44:                                  ; preds = %pred.store.continue43
  %47 = or disjoint i64 %index, 8
  %48 = getelementptr inbounds i8, ptr %.01719.us, i64 %47
  store i8 %5, ptr %48, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue45

pred.store.continue45:                            ; preds = %pred.store.if44, %pred.store.continue43
  %49 = extractelement <16 x i1> %21, i64 9
  br i1 %49, label %pred.store.if46, label %pred.store.continue47

pred.store.if46:                                  ; preds = %pred.store.continue45
  %50 = or disjoint i64 %index, 9
  %51 = getelementptr inbounds i8, ptr %.01719.us, i64 %50
  store i8 %5, ptr %51, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue47

pred.store.continue47:                            ; preds = %pred.store.if46, %pred.store.continue45
  %52 = extractelement <16 x i1> %21, i64 10
  br i1 %52, label %pred.store.if48, label %pred.store.continue49

pred.store.if48:                                  ; preds = %pred.store.continue47
  %53 = or disjoint i64 %index, 10
  %54 = getelementptr inbounds i8, ptr %.01719.us, i64 %53
  store i8 %5, ptr %54, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue49

pred.store.continue49:                            ; preds = %pred.store.if48, %pred.store.continue47
  %55 = extractelement <16 x i1> %21, i64 11
  br i1 %55, label %pred.store.if50, label %pred.store.continue51

pred.store.if50:                                  ; preds = %pred.store.continue49
  %56 = or disjoint i64 %index, 11
  %57 = getelementptr inbounds i8, ptr %.01719.us, i64 %56
  store i8 %5, ptr %57, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue51

pred.store.continue51:                            ; preds = %pred.store.if50, %pred.store.continue49
  %58 = extractelement <16 x i1> %21, i64 12
  br i1 %58, label %pred.store.if52, label %pred.store.continue53

pred.store.if52:                                  ; preds = %pred.store.continue51
  %59 = or disjoint i64 %index, 12
  %60 = getelementptr inbounds i8, ptr %.01719.us, i64 %59
  store i8 %5, ptr %60, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue53

pred.store.continue53:                            ; preds = %pred.store.if52, %pred.store.continue51
  %61 = extractelement <16 x i1> %21, i64 13
  br i1 %61, label %pred.store.if54, label %pred.store.continue55

pred.store.if54:                                  ; preds = %pred.store.continue53
  %62 = or disjoint i64 %index, 13
  %63 = getelementptr inbounds i8, ptr %.01719.us, i64 %62
  store i8 %5, ptr %63, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue55

pred.store.continue55:                            ; preds = %pred.store.if54, %pred.store.continue53
  %64 = extractelement <16 x i1> %21, i64 14
  br i1 %64, label %pred.store.if56, label %pred.store.continue57

pred.store.if56:                                  ; preds = %pred.store.continue55
  %65 = or disjoint i64 %index, 14
  %66 = getelementptr inbounds i8, ptr %.01719.us, i64 %65
  store i8 %5, ptr %66, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue57

pred.store.continue57:                            ; preds = %pred.store.if56, %pred.store.continue55
  %67 = extractelement <16 x i1> %21, i64 15
  br i1 %67, label %pred.store.if58, label %pred.store.continue59

pred.store.if58:                                  ; preds = %pred.store.continue57
  %68 = or disjoint i64 %index, 15
  %69 = getelementptr inbounds i8, ptr %.01719.us, i64 %68
  store i8 %5, ptr %69, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue59

pred.store.continue59:                            ; preds = %pred.store.if58, %pred.store.continue57
  %70 = extractelement <16 x i1> %22, i64 0
  br i1 %70, label %pred.store.if60, label %pred.store.continue61

pred.store.if60:                                  ; preds = %pred.store.continue59
  %71 = getelementptr inbounds i8, ptr %.01719.us, i64 %18
  store i8 %5, ptr %71, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue61

pred.store.continue61:                            ; preds = %pred.store.if60, %pred.store.continue59
  %72 = extractelement <16 x i1> %22, i64 1
  br i1 %72, label %pred.store.if62, label %pred.store.continue63

pred.store.if62:                                  ; preds = %pred.store.continue61
  %73 = or disjoint i64 %index, 17
  %74 = getelementptr inbounds i8, ptr %.01719.us, i64 %73
  store i8 %5, ptr %74, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue63

pred.store.continue63:                            ; preds = %pred.store.if62, %pred.store.continue61
  %75 = extractelement <16 x i1> %22, i64 2
  br i1 %75, label %pred.store.if64, label %pred.store.continue65

pred.store.if64:                                  ; preds = %pred.store.continue63
  %76 = or disjoint i64 %index, 18
  %77 = getelementptr inbounds i8, ptr %.01719.us, i64 %76
  store i8 %5, ptr %77, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue65

pred.store.continue65:                            ; preds = %pred.store.if64, %pred.store.continue63
  %78 = extractelement <16 x i1> %22, i64 3
  br i1 %78, label %pred.store.if66, label %pred.store.continue67

pred.store.if66:                                  ; preds = %pred.store.continue65
  %79 = or disjoint i64 %index, 19
  %80 = getelementptr inbounds i8, ptr %.01719.us, i64 %79
  store i8 %5, ptr %80, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue67

pred.store.continue67:                            ; preds = %pred.store.if66, %pred.store.continue65
  %81 = extractelement <16 x i1> %22, i64 4
  br i1 %81, label %pred.store.if68, label %pred.store.continue69

pred.store.if68:                                  ; preds = %pred.store.continue67
  %82 = or disjoint i64 %index, 20
  %83 = getelementptr inbounds i8, ptr %.01719.us, i64 %82
  store i8 %5, ptr %83, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue69

pred.store.continue69:                            ; preds = %pred.store.if68, %pred.store.continue67
  %84 = extractelement <16 x i1> %22, i64 5
  br i1 %84, label %pred.store.if70, label %pred.store.continue71

pred.store.if70:                                  ; preds = %pred.store.continue69
  %85 = or disjoint i64 %index, 21
  %86 = getelementptr inbounds i8, ptr %.01719.us, i64 %85
  store i8 %5, ptr %86, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue71

pred.store.continue71:                            ; preds = %pred.store.if70, %pred.store.continue69
  %87 = extractelement <16 x i1> %22, i64 6
  br i1 %87, label %pred.store.if72, label %pred.store.continue73

pred.store.if72:                                  ; preds = %pred.store.continue71
  %88 = or disjoint i64 %index, 22
  %89 = getelementptr inbounds i8, ptr %.01719.us, i64 %88
  store i8 %5, ptr %89, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue73

pred.store.continue73:                            ; preds = %pred.store.if72, %pred.store.continue71
  %90 = extractelement <16 x i1> %22, i64 7
  br i1 %90, label %pred.store.if74, label %pred.store.continue75

pred.store.if74:                                  ; preds = %pred.store.continue73
  %91 = or disjoint i64 %index, 23
  %92 = getelementptr inbounds i8, ptr %.01719.us, i64 %91
  store i8 %5, ptr %92, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue75

pred.store.continue75:                            ; preds = %pred.store.if74, %pred.store.continue73
  %93 = extractelement <16 x i1> %22, i64 8
  br i1 %93, label %pred.store.if76, label %pred.store.continue77

pred.store.if76:                                  ; preds = %pred.store.continue75
  %94 = or disjoint i64 %index, 24
  %95 = getelementptr inbounds i8, ptr %.01719.us, i64 %94
  store i8 %5, ptr %95, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue77

pred.store.continue77:                            ; preds = %pred.store.if76, %pred.store.continue75
  %96 = extractelement <16 x i1> %22, i64 9
  br i1 %96, label %pred.store.if78, label %pred.store.continue79

pred.store.if78:                                  ; preds = %pred.store.continue77
  %97 = or disjoint i64 %index, 25
  %98 = getelementptr inbounds i8, ptr %.01719.us, i64 %97
  store i8 %5, ptr %98, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue79

pred.store.continue79:                            ; preds = %pred.store.if78, %pred.store.continue77
  %99 = extractelement <16 x i1> %22, i64 10
  br i1 %99, label %pred.store.if80, label %pred.store.continue81

pred.store.if80:                                  ; preds = %pred.store.continue79
  %100 = or disjoint i64 %index, 26
  %101 = getelementptr inbounds i8, ptr %.01719.us, i64 %100
  store i8 %5, ptr %101, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue81

pred.store.continue81:                            ; preds = %pred.store.if80, %pred.store.continue79
  %102 = extractelement <16 x i1> %22, i64 11
  br i1 %102, label %pred.store.if82, label %pred.store.continue83

pred.store.if82:                                  ; preds = %pred.store.continue81
  %103 = or disjoint i64 %index, 27
  %104 = getelementptr inbounds i8, ptr %.01719.us, i64 %103
  store i8 %5, ptr %104, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue83

pred.store.continue83:                            ; preds = %pred.store.if82, %pred.store.continue81
  %105 = extractelement <16 x i1> %22, i64 12
  br i1 %105, label %pred.store.if84, label %pred.store.continue85

pred.store.if84:                                  ; preds = %pred.store.continue83
  %106 = or disjoint i64 %index, 28
  %107 = getelementptr inbounds i8, ptr %.01719.us, i64 %106
  store i8 %5, ptr %107, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue85

pred.store.continue85:                            ; preds = %pred.store.if84, %pred.store.continue83
  %108 = extractelement <16 x i1> %22, i64 13
  br i1 %108, label %pred.store.if86, label %pred.store.continue87

pred.store.if86:                                  ; preds = %pred.store.continue85
  %109 = or disjoint i64 %index, 29
  %110 = getelementptr inbounds i8, ptr %.01719.us, i64 %109
  store i8 %5, ptr %110, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue87

pred.store.continue87:                            ; preds = %pred.store.if86, %pred.store.continue85
  %111 = extractelement <16 x i1> %22, i64 14
  br i1 %111, label %pred.store.if88, label %pred.store.continue89

pred.store.if88:                                  ; preds = %pred.store.continue87
  %112 = or disjoint i64 %index, 30
  %113 = getelementptr inbounds i8, ptr %.01719.us, i64 %112
  store i8 %5, ptr %113, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue89

pred.store.continue89:                            ; preds = %pred.store.if88, %pred.store.continue87
  %114 = extractelement <16 x i1> %22, i64 15
  br i1 %114, label %pred.store.if90, label %pred.store.continue91

pred.store.if90:                                  ; preds = %pred.store.continue89
  %115 = or disjoint i64 %index, 31
  %116 = getelementptr inbounds i8, ptr %.01719.us, i64 %115
  store i8 %5, ptr %116, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue91

pred.store.continue91:                            ; preds = %pred.store.if90, %pred.store.continue89
  %index.next = add nuw i64 %index, 32
  %117 = icmp eq i64 %index.next, %n.vec
  br i1 %117, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %pred.store.continue91
  br i1 %cmp.n, label %._crit_edge.us, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  br i1 %min.epilog.iters.check, label %vec.epilog.scalar.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %pred.store.continue113, %vec.epilog.ph
  %index94 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next114, %pred.store.continue113 ]
  %118 = getelementptr inbounds i8, ptr %.01620.us, i64 %index94
  %wide.load95 = load <8 x i8>, ptr %118, align 1, !tbaa !5, !alias.scope !17
  %119 = icmp eq <8 x i8> %wide.load95, %broadcast.splat97
  %120 = extractelement <8 x i1> %119, i64 0
  br i1 %120, label %pred.store.if98, label %pred.store.continue99

pred.store.if98:                                  ; preds = %vec.epilog.vector.body
  %121 = getelementptr inbounds i8, ptr %.01719.us, i64 %index94
  store i8 %5, ptr %121, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue99

pred.store.continue99:                            ; preds = %pred.store.if98, %vec.epilog.vector.body
  %122 = extractelement <8 x i1> %119, i64 1
  br i1 %122, label %pred.store.if100, label %pred.store.continue101

pred.store.if100:                                 ; preds = %pred.store.continue99
  %123 = or disjoint i64 %index94, 1
  %124 = getelementptr inbounds i8, ptr %.01719.us, i64 %123
  store i8 %5, ptr %124, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue101

pred.store.continue101:                           ; preds = %pred.store.if100, %pred.store.continue99
  %125 = extractelement <8 x i1> %119, i64 2
  br i1 %125, label %pred.store.if102, label %pred.store.continue103

pred.store.if102:                                 ; preds = %pred.store.continue101
  %126 = or disjoint i64 %index94, 2
  %127 = getelementptr inbounds i8, ptr %.01719.us, i64 %126
  store i8 %5, ptr %127, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue103

pred.store.continue103:                           ; preds = %pred.store.if102, %pred.store.continue101
  %128 = extractelement <8 x i1> %119, i64 3
  br i1 %128, label %pred.store.if104, label %pred.store.continue105

pred.store.if104:                                 ; preds = %pred.store.continue103
  %129 = or disjoint i64 %index94, 3
  %130 = getelementptr inbounds i8, ptr %.01719.us, i64 %129
  store i8 %5, ptr %130, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue105

pred.store.continue105:                           ; preds = %pred.store.if104, %pred.store.continue103
  %131 = extractelement <8 x i1> %119, i64 4
  br i1 %131, label %pred.store.if106, label %pred.store.continue107

pred.store.if106:                                 ; preds = %pred.store.continue105
  %132 = or disjoint i64 %index94, 4
  %133 = getelementptr inbounds i8, ptr %.01719.us, i64 %132
  store i8 %5, ptr %133, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue107

pred.store.continue107:                           ; preds = %pred.store.if106, %pred.store.continue105
  %134 = extractelement <8 x i1> %119, i64 5
  br i1 %134, label %pred.store.if108, label %pred.store.continue109

pred.store.if108:                                 ; preds = %pred.store.continue107
  %135 = or disjoint i64 %index94, 5
  %136 = getelementptr inbounds i8, ptr %.01719.us, i64 %135
  store i8 %5, ptr %136, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue109

pred.store.continue109:                           ; preds = %pred.store.if108, %pred.store.continue107
  %137 = extractelement <8 x i1> %119, i64 6
  br i1 %137, label %pred.store.if110, label %pred.store.continue111

pred.store.if110:                                 ; preds = %pred.store.continue109
  %138 = or disjoint i64 %index94, 6
  %139 = getelementptr inbounds i8, ptr %.01719.us, i64 %138
  store i8 %5, ptr %139, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue111

pred.store.continue111:                           ; preds = %pred.store.if110, %pred.store.continue109
  %140 = extractelement <8 x i1> %119, i64 7
  br i1 %140, label %pred.store.if112, label %pred.store.continue113

pred.store.if112:                                 ; preds = %pred.store.continue111
  %141 = or disjoint i64 %index94, 7
  %142 = getelementptr inbounds i8, ptr %.01719.us, i64 %141
  store i8 %5, ptr %142, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue113

pred.store.continue113:                           ; preds = %pred.store.if112, %pred.store.continue111
  %index.next114 = add nuw i64 %index94, 8
  %143 = icmp eq i64 %index.next114, %n.vec93
  br i1 %143, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !22

vec.epilog.middle.block:                          ; preds = %pred.store.continue113
  br i1 %cmp.n115, label %._crit_edge.us, label %vec.epilog.scalar.ph.preheader

vec.epilog.scalar.ph.preheader:                   ; preds = %iter.check, %vec.epilog.middle.block, %vec.epilog.iter.check
  %.018.us.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec93, %vec.epilog.middle.block ]
  br i1 %lcmp.mod.not, label %vec.epilog.scalar.ph.prol.loopexit, label %vec.epilog.scalar.ph.prol

vec.epilog.scalar.ph.prol:                        ; preds = %vec.epilog.scalar.ph.preheader
  %144 = getelementptr inbounds i8, ptr %.01620.us, i64 %.018.us.ph
  %145 = load i8, ptr %144, align 1, !tbaa !5
  %146 = icmp eq i8 %145, %4
  br i1 %146, label %147, label %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa

147:                                              ; preds = %vec.epilog.scalar.ph.prol
  %148 = getelementptr inbounds i8, ptr %.01719.us, i64 %.018.us.ph
  store i8 %5, ptr %148, align 1, !tbaa !5
  br label %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa

vec.epilog.scalar.ph.prol.loopexit.unr-lcssa:     ; preds = %147, %vec.epilog.scalar.ph.prol
  %149 = or disjoint i64 %.018.us.ph, 1
  br label %vec.epilog.scalar.ph.prol.loopexit

vec.epilog.scalar.ph.prol.loopexit:               ; preds = %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa, %vec.epilog.scalar.ph.preheader
  %.018.us.unr = phi i64 [ %.018.us.ph, %vec.epilog.scalar.ph.preheader ], [ %149, %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa ]
  %150 = icmp eq i64 %.018.us.ph, %17
  br i1 %150, label %._crit_edge.us, label %vec.epilog.scalar.ph

vec.epilog.scalar.ph:                             ; preds = %vec.epilog.scalar.ph.prol.loopexit, %162
  %.018.us = phi i64 [ %163, %162 ], [ %.018.us.unr, %vec.epilog.scalar.ph.prol.loopexit ]
  %151 = getelementptr inbounds i8, ptr %.01620.us, i64 %.018.us
  %152 = load i8, ptr %151, align 1, !tbaa !5
  %153 = icmp eq i8 %152, %4
  br i1 %153, label %154, label %vec.epilog.scalar.ph.1

154:                                              ; preds = %vec.epilog.scalar.ph
  %155 = getelementptr inbounds i8, ptr %.01719.us, i64 %.018.us
  store i8 %5, ptr %155, align 1, !tbaa !5
  br label %vec.epilog.scalar.ph.1

vec.epilog.scalar.ph.1:                           ; preds = %154, %vec.epilog.scalar.ph
  %156 = add nuw i64 %.018.us, 1
  %157 = getelementptr inbounds i8, ptr %.01620.us, i64 %156
  %158 = load i8, ptr %157, align 1, !tbaa !5
  %159 = icmp eq i8 %158, %4
  br i1 %159, label %160, label %162

160:                                              ; preds = %vec.epilog.scalar.ph.1
  %161 = getelementptr inbounds i8, ptr %.01719.us, i64 %156
  store i8 %5, ptr %161, align 1, !tbaa !5
  br label %162

162:                                              ; preds = %160, %vec.epilog.scalar.ph.1
  %163 = add nuw i64 %.018.us, 2
  %exitcond.not.1 = icmp eq i64 %163, %2
  br i1 %exitcond.not.1, label %._crit_edge.us, label %vec.epilog.scalar.ph, !llvm.loop !23

._crit_edge.us:                                   ; preds = %vec.epilog.scalar.ph.prol.loopexit, %162, %vec.epilog.middle.block, %middle.block
  %164 = getelementptr inbounds i8, ptr %.01620.us, i64 %1
  %165 = getelementptr inbounds i8, ptr %.01719.us, i64 %7
  %166 = add nuw i64 %.01521.us, 1
  %exitcond25.not = icmp eq i64 %166, %3
  br i1 %exitcond25.not, label %._crit_edge22, label %iter.check, !llvm.loop !24

._crit_edge22:                                    ; preds = %._crit_edge.us, %8
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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" }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9}
!9 = distinct !{!9, !10}
!10 = distinct !{!10, !"LVerDomain"}
!11 = !{!12}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = !{!18}
!18 = distinct !{!18, !19}
!19 = distinct !{!19, !"LVerDomain"}
!20 = !{!21}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !14, !15, !16}
!23 = distinct !{!23, !14, !15}
!24 = distinct !{!24, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass