; LLVM IR from zchrissirhcz/pixel :: legacy/matcalc (matrix_column_max)

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

20:                                               ; preds = %59, %4
  %21 = load i64, ptr %10, align 8, !tbaa !9
  %22 = load i64, ptr %6, align 8, !tbaa !9
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %25, label %24

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

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

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

30:                                               ; preds = %26
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %55

31:                                               ; preds = %26
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load i64, ptr %12, 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 ptr, ptr %8, align 8, !tbaa !5
  %38 = load i64, ptr %12, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %37, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !11
  %41 = zext i8 %40 to i32
  %42 = icmp sgt i32 %36, %41
  br i1 %42, label %43, label %51

43:                                               ; preds = %31
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i64, ptr %12, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %44, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load i64, ptr %12, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %48, i64 %49
  store i8 %47, ptr %50, align 1, !tbaa !11
  br label %51

51:                                               ; preds = %43, %31
  br label %52

52:                                               ; preds = %51
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = add i64 %53, 1
  store i64 %54, ptr %12, align 8, !tbaa !9
  br label %26, !llvm.loop !12

55:                                               ; preds = %30
  %56 = load i64, ptr %7, align 8, !tbaa !9
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 %56
  store ptr %58, ptr %9, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %55
  %60 = load i64, ptr %10, align 8, !tbaa !9
  %61 = add i64 %60, 1
  store i64 %61, ptr %10, align 8, !tbaa !9
  br label %20, !llvm.loop !14

62:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local void @matrix_column_max_u8_cacheline(ptr nocapture noundef readonly %0, i64 noundef %1, i64 noundef %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 %0, i64 %2, i1 false)
  %5 = icmp ult i64 %1, 2
  %.not = icmp eq i64 %2, 0
  %or.cond = or i1 %5, %.not
  br i1 %or.cond, label %._crit_edge27, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %4
  %6 = mul i64 %2, %1
  %scevgep31 = getelementptr i8, ptr %0, i64 %6
  %min.iters.check = icmp ult i64 %2, 8
  %bound0 = icmp ugt ptr %scevgep31, %3
  %bound1 = icmp ult ptr %0, %3
  %found.conflict = and i1 %bound0, %bound1
  %stride.check = icmp slt i64 %2, 0
  %7 = or i1 %found.conflict, %stride.check
  %min.iters.check32 = icmp ult i64 %2, 16
  %n.vec = and i64 %2, 9223372036854775792
  %cmp.n = icmp eq i64 %n.vec, %2
  %n.vec.remaining = and i64 %2, 8
  %min.epilog.iters.check.not.not = icmp eq i64 %n.vec.remaining, 0
  %n.vec65 = and i64 %2, 9223372036854775800
  %cmp.n86 = icmp eq i64 %n.vec65, %2
  %xtraiter = and i64 %2, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %8 = add i64 %2, -1
  br label %iter.check

iter.check:                                       ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.02126.us.pn = phi ptr [ %.02126.us, %._crit_edge.us ], [ %0, %.preheader.us.preheader ]
  %.02025.us = phi i64 [ %134, %._crit_edge.us ], [ 1, %.preheader.us.preheader ]
  %.02126.us = getelementptr inbounds i8, ptr %.02126.us.pn, i64 %2
  %brmerge = or i1 %min.iters.check, %7
  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.check32, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check, %pred.store.continue63
  %index = phi i64 [ %index.next, %pred.store.continue63 ], [ 0, %vector.main.loop.iter.check ]
  %9 = getelementptr inbounds i8, ptr %.02126.us, i64 %index
  %wide.load = load <16 x i8>, ptr %9, align 1, !tbaa !5, !alias.scope !8
  %10 = getelementptr inbounds i8, ptr %3, i64 %index
  %wide.load33 = load <16 x i8>, ptr %10, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  %11 = icmp ugt <16 x i8> %wide.load, %wide.load33
  %12 = extractelement <16 x i1> %11, i64 0
  br i1 %12, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %13 = getelementptr inbounds i8, ptr %3, i64 %index
  %14 = extractelement <16 x i8> %wide.load, i64 0
  store i8 %14, ptr %13, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %15 = extractelement <16 x i1> %11, i64 1
  br i1 %15, label %pred.store.if34, label %pred.store.continue35

pred.store.if34:                                  ; preds = %pred.store.continue
  %16 = or disjoint i64 %index, 1
  %17 = getelementptr inbounds i8, ptr %3, i64 %16
  %18 = extractelement <16 x i8> %wide.load, i64 1
  store i8 %18, ptr %17, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue35

pred.store.continue35:                            ; preds = %pred.store.if34, %pred.store.continue
  %19 = extractelement <16 x i1> %11, i64 2
  br i1 %19, label %pred.store.if36, label %pred.store.continue37

pred.store.if36:                                  ; preds = %pred.store.continue35
  %20 = or disjoint i64 %index, 2
  %21 = getelementptr inbounds i8, ptr %3, i64 %20
  %22 = extractelement <16 x i8> %wide.load, i64 2
  store i8 %22, ptr %21, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue37

pred.store.continue37:                            ; preds = %pred.store.if36, %pred.store.continue35
  %23 = extractelement <16 x i1> %11, i64 3
  br i1 %23, label %pred.store.if38, label %pred.store.continue39

pred.store.if38:                                  ; preds = %pred.store.continue37
  %24 = or disjoint i64 %index, 3
  %25 = getelementptr inbounds i8, ptr %3, i64 %24
  %26 = extractelement <16 x i8> %wide.load, i64 3
  store i8 %26, ptr %25, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue39

pred.store.continue39:                            ; preds = %pred.store.if38, %pred.store.continue37
  %27 = extractelement <16 x i1> %11, i64 4
  br i1 %27, label %pred.store.if40, label %pred.store.continue41

pred.store.if40:                                  ; preds = %pred.store.continue39
  %28 = or disjoint i64 %index, 4
  %29 = getelementptr inbounds i8, ptr %3, i64 %28
  %30 = extractelement <16 x i8> %wide.load, i64 4
  store i8 %30, ptr %29, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue41

pred.store.continue41:                            ; preds = %pred.store.if40, %pred.store.continue39
  %31 = extractelement <16 x i1> %11, i64 5
  br i1 %31, label %pred.store.if42, label %pred.store.continue43

pred.store.if42:                                  ; preds = %pred.store.continue41
  %32 = or disjoint i64 %index, 5
  %33 = getelementptr inbounds i8, ptr %3, i64 %32
  %34 = extractelement <16 x i8> %wide.load, i64 5
  store i8 %34, ptr %33, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue43

pred.store.continue43:                            ; preds = %pred.store.if42, %pred.store.continue41
  %35 = extractelement <16 x i1> %11, i64 6
  br i1 %35, label %pred.store.if44, label %pred.store.continue45

pred.store.if44:                                  ; preds = %pred.store.continue43
  %36 = or disjoint i64 %index, 6
  %37 = getelementptr inbounds i8, ptr %3, i64 %36
  %38 = extractelement <16 x i8> %wide.load, i64 6
  store i8 %38, ptr %37, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue45

pred.store.continue45:                            ; preds = %pred.store.if44, %pred.store.continue43
  %39 = extractelement <16 x i1> %11, i64 7
  br i1 %39, label %pred.store.if46, label %pred.store.continue47

pred.store.if46:                                  ; preds = %pred.store.continue45
  %40 = or disjoint i64 %index, 7
  %41 = getelementptr inbounds i8, ptr %3, i64 %40
  %42 = extractelement <16 x i8> %wide.load, i64 7
  store i8 %42, ptr %41, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue47

pred.store.continue47:                            ; preds = %pred.store.if46, %pred.store.continue45
  %43 = extractelement <16 x i1> %11, i64 8
  br i1 %43, label %pred.store.if48, label %pred.store.continue49

pred.store.if48:                                  ; preds = %pred.store.continue47
  %44 = or disjoint i64 %index, 8
  %45 = getelementptr inbounds i8, ptr %3, i64 %44
  %46 = extractelement <16 x i8> %wide.load, i64 8
  store i8 %46, ptr %45, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue49

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

pred.store.if50:                                  ; preds = %pred.store.continue49
  %48 = or disjoint i64 %index, 9
  %49 = getelementptr inbounds i8, ptr %3, i64 %48
  %50 = extractelement <16 x i8> %wide.load, i64 9
  store i8 %50, ptr %49, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue51

pred.store.continue51:                            ; preds = %pred.store.if50, %pred.store.continue49
  %51 = extractelement <16 x i1> %11, i64 10
  br i1 %51, label %pred.store.if52, label %pred.store.continue53

pred.store.if52:                                  ; preds = %pred.store.continue51
  %52 = or disjoint i64 %index, 10
  %53 = getelementptr inbounds i8, ptr %3, i64 %52
  %54 = extractelement <16 x i8> %wide.load, i64 10
  store i8 %54, ptr %53, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue53

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

pred.store.if54:                                  ; preds = %pred.store.continue53
  %56 = or disjoint i64 %index, 11
  %57 = getelementptr inbounds i8, ptr %3, i64 %56
  %58 = extractelement <16 x i8> %wide.load, i64 11
  store i8 %58, ptr %57, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue55

pred.store.continue55:                            ; preds = %pred.store.if54, %pred.store.continue53
  %59 = extractelement <16 x i1> %11, i64 12
  br i1 %59, label %pred.store.if56, label %pred.store.continue57

pred.store.if56:                                  ; preds = %pred.store.continue55
  %60 = or disjoint i64 %index, 12
  %61 = getelementptr inbounds i8, ptr %3, i64 %60
  %62 = extractelement <16 x i8> %wide.load, i64 12
  store i8 %62, ptr %61, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue57

pred.store.continue57:                            ; preds = %pred.store.if56, %pred.store.continue55
  %63 = extractelement <16 x i1> %11, i64 13
  br i1 %63, label %pred.store.if58, label %pred.store.continue59

pred.store.if58:                                  ; preds = %pred.store.continue57
  %64 = or disjoint i64 %index, 13
  %65 = getelementptr inbounds i8, ptr %3, i64 %64
  %66 = extractelement <16 x i8> %wide.load, i64 13
  store i8 %66, ptr %65, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue59

pred.store.continue59:                            ; preds = %pred.store.if58, %pred.store.continue57
  %67 = extractelement <16 x i1> %11, i64 14
  br i1 %67, label %pred.store.if60, label %pred.store.continue61

pred.store.if60:                                  ; preds = %pred.store.continue59
  %68 = or disjoint i64 %index, 14
  %69 = getelementptr inbounds i8, ptr %3, i64 %68
  %70 = extractelement <16 x i8> %wide.load, i64 14
  store i8 %70, ptr %69, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue61

pred.store.continue61:                            ; preds = %pred.store.if60, %pred.store.continue59
  %71 = extractelement <16 x i1> %11, i64 15
  br i1 %71, label %pred.store.if62, label %pred.store.continue63

pred.store.if62:                                  ; preds = %pred.store.continue61
  %72 = or disjoint i64 %index, 15
  %73 = getelementptr inbounds i8, ptr %3, i64 %72
  %74 = extractelement <16 x i8> %wide.load, i64 15
  store i8 %74, ptr %73, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  br label %pred.store.continue63

pred.store.continue63:                            ; preds = %pred.store.if62, %pred.store.continue61
  %index.next = add nuw i64 %index, 16
  %75 = icmp eq i64 %index.next, %n.vec
  br i1 %75, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %pred.store.continue63
  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.not.not, 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.continue84, %vec.epilog.ph
  %index66 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next85, %pred.store.continue84 ]
  %76 = getelementptr inbounds i8, ptr %.02126.us, i64 %index66
  %wide.load67 = load <8 x i8>, ptr %76, align 1, !tbaa !5, !alias.scope !17
  %77 = getelementptr inbounds i8, ptr %3, i64 %index66
  %wide.load68 = load <8 x i8>, ptr %77, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  %78 = icmp ugt <8 x i8> %wide.load67, %wide.load68
  %79 = extractelement <8 x i1> %78, i64 0
  br i1 %79, label %pred.store.if69, label %pred.store.continue70

pred.store.if69:                                  ; preds = %vec.epilog.vector.body
  %80 = getelementptr inbounds i8, ptr %3, i64 %index66
  %81 = extractelement <8 x i8> %wide.load67, i64 0
  store i8 %81, ptr %80, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue70

pred.store.continue70:                            ; preds = %pred.store.if69, %vec.epilog.vector.body
  %82 = extractelement <8 x i1> %78, i64 1
  br i1 %82, label %pred.store.if71, label %pred.store.continue72

pred.store.if71:                                  ; preds = %pred.store.continue70
  %83 = or disjoint i64 %index66, 1
  %84 = getelementptr inbounds i8, ptr %3, i64 %83
  %85 = extractelement <8 x i8> %wide.load67, i64 1
  store i8 %85, ptr %84, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue72

pred.store.continue72:                            ; preds = %pred.store.if71, %pred.store.continue70
  %86 = extractelement <8 x i1> %78, i64 2
  br i1 %86, label %pred.store.if73, label %pred.store.continue74

pred.store.if73:                                  ; preds = %pred.store.continue72
  %87 = or disjoint i64 %index66, 2
  %88 = getelementptr inbounds i8, ptr %3, i64 %87
  %89 = extractelement <8 x i8> %wide.load67, i64 2
  store i8 %89, ptr %88, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue74

pred.store.continue74:                            ; preds = %pred.store.if73, %pred.store.continue72
  %90 = extractelement <8 x i1> %78, i64 3
  br i1 %90, label %pred.store.if75, label %pred.store.continue76

pred.store.if75:                                  ; preds = %pred.store.continue74
  %91 = or disjoint i64 %index66, 3
  %92 = getelementptr inbounds i8, ptr %3, i64 %91
  %93 = extractelement <8 x i8> %wide.load67, i64 3
  store i8 %93, ptr %92, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue76

pred.store.continue76:                            ; preds = %pred.store.if75, %pred.store.continue74
  %94 = extractelement <8 x i1> %78, i64 4
  br i1 %94, label %pred.store.if77, label %pred.store.continue78

pred.store.if77:                                  ; preds = %pred.store.continue76
  %95 = or disjoint i64 %index66, 4
  %96 = getelementptr inbounds i8, ptr %3, i64 %95
  %97 = extractelement <8 x i8> %wide.load67, i64 4
  store i8 %97, ptr %96, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue78

pred.store.continue78:                            ; preds = %pred.store.if77, %pred.store.continue76
  %98 = extractelement <8 x i1> %78, i64 5
  br i1 %98, label %pred.store.if79, label %pred.store.continue80

pred.store.if79:                                  ; preds = %pred.store.continue78
  %99 = or disjoint i64 %index66, 5
  %100 = getelementptr inbounds i8, ptr %3, i64 %99
  %101 = extractelement <8 x i8> %wide.load67, i64 5
  store i8 %101, ptr %100, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue80

pred.store.continue80:                            ; preds = %pred.store.if79, %pred.store.continue78
  %102 = extractelement <8 x i1> %78, i64 6
  br i1 %102, label %pred.store.if81, label %pred.store.continue82

pred.store.if81:                                  ; preds = %pred.store.continue80
  %103 = or disjoint i64 %index66, 6
  %104 = getelementptr inbounds i8, ptr %3, i64 %103
  %105 = extractelement <8 x i8> %wide.load67, i64 6
  store i8 %105, ptr %104, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue82

pred.store.continue82:                            ; preds = %pred.store.if81, %pred.store.continue80
  %106 = extractelement <8 x i1> %78, i64 7
  br i1 %106, label %pred.store.if83, label %pred.store.continue84

pred.store.if83:                                  ; preds = %pred.store.continue82
  %107 = or disjoint i64 %index66, 7
  %108 = getelementptr inbounds i8, ptr %3, i64 %107
  %109 = extractelement <8 x i8> %wide.load67, i64 7
  store i8 %109, ptr %108, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue84

pred.store.continue84:                            ; preds = %pred.store.if83, %pred.store.continue82
  %index.next85 = add nuw i64 %index66, 8
  %110 = icmp eq i64 %index.next85, %n.vec65
  br i1 %110, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !22

vec.epilog.middle.block:                          ; preds = %pred.store.continue84
  br i1 %cmp.n86, 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
  %.023.us.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec65, %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
  %111 = getelementptr inbounds i8, ptr %.02126.us, i64 %.023.us.ph
  %112 = load i8, ptr %111, align 1, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %3, i64 %.023.us.ph
  %114 = load i8, ptr %113, align 1, !tbaa !5
  %115 = icmp ugt i8 %112, %114
  br i1 %115, label %116, label %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa

116:                                              ; preds = %vec.epilog.scalar.ph.prol
  store i8 %112, ptr %113, align 1, !tbaa !5
  br label %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa

vec.epilog.scalar.ph.prol.loopexit.unr-lcssa:     ; preds = %116, %vec.epilog.scalar.ph.prol
  %117 = or disjoint i64 %.023.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
  %.023.us.unr = phi i64 [ %.023.us.ph, %vec.epilog.scalar.ph.preheader ], [ %117, %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa ]
  %118 = icmp eq i64 %.023.us.ph, %8
  br i1 %118, label %._crit_edge.us, label %vec.epilog.scalar.ph

vec.epilog.scalar.ph:                             ; preds = %vec.epilog.scalar.ph.prol.loopexit, %132
  %.023.us = phi i64 [ %133, %132 ], [ %.023.us.unr, %vec.epilog.scalar.ph.prol.loopexit ]
  %119 = getelementptr inbounds i8, ptr %.02126.us, i64 %.023.us
  %120 = load i8, ptr %119, align 1, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %3, i64 %.023.us
  %122 = load i8, ptr %121, align 1, !tbaa !5
  %123 = icmp ugt i8 %120, %122
  br i1 %123, label %124, label %vec.epilog.scalar.ph.1

124:                                              ; preds = %vec.epilog.scalar.ph
  store i8 %120, ptr %121, align 1, !tbaa !5
  br label %vec.epilog.scalar.ph.1

vec.epilog.scalar.ph.1:                           ; preds = %124, %vec.epilog.scalar.ph
  %125 = add nuw i64 %.023.us, 1
  %126 = getelementptr inbounds i8, ptr %.02126.us, i64 %125
  %127 = load i8, ptr %126, align 1, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %3, i64 %125
  %129 = load i8, ptr %128, align 1, !tbaa !5
  %130 = icmp ugt i8 %127, %129
  br i1 %130, label %131, label %132

131:                                              ; preds = %vec.epilog.scalar.ph.1
  store i8 %127, ptr %128, align 1, !tbaa !5
  br label %132

132:                                              ; preds = %131, %vec.epilog.scalar.ph.1
  %133 = add nuw i64 %.023.us, 2
  %exitcond.not.1 = icmp eq i64 %133, %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, %132, %vec.epilog.middle.block, %middle.block
  %134 = add nuw i64 %.02025.us, 1
  %exitcond29.not = icmp eq i64 %134, %1
  br i1 %exitcond29.not, label %._crit_edge27, label %iter.check, !llvm.loop !24

._crit_edge27:                                    ; preds = %._crit_edge.us, %4
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

attributes #0 = { nofree norecurse nosync nounwind memory(read, argmem: 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" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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/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,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass