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

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

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

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

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

28:                                               ; preds = %54, %26
  %29 = load i64, ptr %13, align 8, !tbaa !9
  %30 = load i64, ptr %7, align 8, !tbaa !9
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %57

33:                                               ; preds = %28
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = load i64, ptr %13, align 8, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %34, i64 %35
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = zext i8 %37 to i32
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i64, ptr %13, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %39, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = zext i8 %42 to i32
  %44 = icmp sgt i32 %38, %43
  br i1 %44, label %45, label %53

45:                                               ; preds = %33
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %46, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i64, ptr %13, align 8, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %50, i64 %51
  store i8 %49, ptr %52, align 1, !tbaa !11
  br label %53

53:                                               ; preds = %45, %33
  br label %54

54:                                               ; preds = %53
  %55 = load i64, ptr %13, align 8, !tbaa !9
  %56 = add i64 %55, 1
  store i64 %56, ptr %13, align 8, !tbaa !9
  br label %28, !llvm.loop !12

57:                                               ; preds = %32
  %58 = load i64, ptr %7, align 8, !tbaa !9
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 %58
  store ptr %60, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %61

61:                                               ; preds = %57
  %62 = load i64, ptr %10, align 8, !tbaa !9
  %63 = add i64 %62, 1
  store i64 %63, ptr %10, align 8, !tbaa !9
  br label %21, !llvm.loop !14

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

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

; Function Attrs: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local void @matrix_column_max_u8_cacheline_asimd(ptr nocapture noundef readonly %0, i64 noundef %1, i64 noundef %2, ptr nocapture noundef %3) local_unnamed_addr #1 {
  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_edge28, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %4
  %6 = mul i64 %2, %1
  %scevgep32 = getelementptr i8, ptr %0, i64 %6
  %min.iters.check = icmp ult i64 %2, 8
  %bound0 = icmp ugt ptr %scevgep32, %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.check33 = 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.vec66 = and i64 %2, 9223372036854775800
  %cmp.n87 = icmp eq i64 %n.vec66, %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
  %.02127.us.pn = phi ptr [ %.02127.us, %._crit_edge.us ], [ %0, %.preheader.us.preheader ]
  %.02226.us = phi i64 [ %134, %._crit_edge.us ], [ 1, %.preheader.us.preheader ]
  %.02127.us = getelementptr inbounds i8, ptr %.02127.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.check33, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check, %pred.store.continue64
  %index = phi i64 [ %index.next, %pred.store.continue64 ], [ 0, %vector.main.loop.iter.check ]
  %9 = getelementptr inbounds i8, ptr %.02127.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.load34 = load <16 x i8>, ptr %10, align 1, !tbaa !5, !alias.scope !11, !noalias !8
  %11 = icmp ugt <16 x i8> %wide.load, %wide.load34
  %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.if35, label %pred.store.continue36

pred.store.if35:                                  ; 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.continue36

pred.store.continue36:                            ; preds = %pred.store.if35, %pred.store.continue
  %19 = extractelement <16 x i1> %11, i64 2
  br i1 %19, label %pred.store.if37, label %pred.store.continue38

pred.store.if37:                                  ; preds = %pred.store.continue36
  %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.continue38

pred.store.continue38:                            ; preds = %pred.store.if37, %pred.store.continue36
  %23 = extractelement <16 x i1> %11, i64 3
  br i1 %23, label %pred.store.if39, label %pred.store.continue40

pred.store.if39:                                  ; preds = %pred.store.continue38
  %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.continue40

pred.store.continue40:                            ; preds = %pred.store.if39, %pred.store.continue38
  %27 = extractelement <16 x i1> %11, i64 4
  br i1 %27, label %pred.store.if41, label %pred.store.continue42

pred.store.if41:                                  ; preds = %pred.store.continue40
  %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.continue42

pred.store.continue42:                            ; preds = %pred.store.if41, %pred.store.continue40
  %31 = extractelement <16 x i1> %11, i64 5
  br i1 %31, label %pred.store.if43, label %pred.store.continue44

pred.store.if43:                                  ; preds = %pred.store.continue42
  %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.continue44

pred.store.continue44:                            ; preds = %pred.store.if43, %pred.store.continue42
  %35 = extractelement <16 x i1> %11, i64 6
  br i1 %35, label %pred.store.if45, label %pred.store.continue46

pred.store.if45:                                  ; preds = %pred.store.continue44
  %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.continue46

pred.store.continue46:                            ; preds = %pred.store.if45, %pred.store.continue44
  %39 = extractelement <16 x i1> %11, i64 7
  br i1 %39, label %pred.store.if47, label %pred.store.continue48

pred.store.if47:                                  ; preds = %pred.store.continue46
  %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.continue48

pred.store.continue48:                            ; preds = %pred.store.if47, %pred.store.continue46
  %43 = extractelement <16 x i1> %11, i64 8
  br i1 %43, label %pred.store.if49, label %pred.store.continue50

pred.store.if49:                                  ; preds = %pred.store.continue48
  %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.continue50

pred.store.continue50:                            ; preds = %pred.store.if49, %pred.store.continue48
  %47 = extractelement <16 x i1> %11, i64 9
  br i1 %47, label %pred.store.if51, label %pred.store.continue52

pred.store.if51:                                  ; preds = %pred.store.continue50
  %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.continue52

pred.store.continue52:                            ; preds = %pred.store.if51, %pred.store.continue50
  %51 = extractelement <16 x i1> %11, i64 10
  br i1 %51, label %pred.store.if53, label %pred.store.continue54

pred.store.if53:                                  ; preds = %pred.store.continue52
  %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.continue54

pred.store.continue54:                            ; preds = %pred.store.if53, %pred.store.continue52
  %55 = extractelement <16 x i1> %11, i64 11
  br i1 %55, label %pred.store.if55, label %pred.store.continue56

pred.store.if55:                                  ; preds = %pred.store.continue54
  %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.continue56

pred.store.continue56:                            ; preds = %pred.store.if55, %pred.store.continue54
  %59 = extractelement <16 x i1> %11, i64 12
  br i1 %59, label %pred.store.if57, label %pred.store.continue58

pred.store.if57:                                  ; preds = %pred.store.continue56
  %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.continue58

pred.store.continue58:                            ; preds = %pred.store.if57, %pred.store.continue56
  %63 = extractelement <16 x i1> %11, i64 13
  br i1 %63, label %pred.store.if59, label %pred.store.continue60

pred.store.if59:                                  ; preds = %pred.store.continue58
  %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.continue60

pred.store.continue60:                            ; preds = %pred.store.if59, %pred.store.continue58
  %67 = extractelement <16 x i1> %11, i64 14
  br i1 %67, label %pred.store.if61, label %pred.store.continue62

pred.store.if61:                                  ; preds = %pred.store.continue60
  %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.continue62

pred.store.continue62:                            ; preds = %pred.store.if61, %pred.store.continue60
  %71 = extractelement <16 x i1> %11, i64 15
  br i1 %71, label %pred.store.if63, label %pred.store.continue64

pred.store.if63:                                  ; preds = %pred.store.continue62
  %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.continue64

pred.store.continue64:                            ; preds = %pred.store.if63, %pred.store.continue62
  %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.continue64
  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.continue85, %vec.epilog.ph
  %index67 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next86, %pred.store.continue85 ]
  %76 = getelementptr inbounds i8, ptr %.02127.us, i64 %index67
  %wide.load68 = load <8 x i8>, ptr %76, align 1, !tbaa !5, !alias.scope !17
  %77 = getelementptr inbounds i8, ptr %3, i64 %index67
  %wide.load69 = load <8 x i8>, ptr %77, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  %78 = icmp ugt <8 x i8> %wide.load68, %wide.load69
  %79 = extractelement <8 x i1> %78, i64 0
  br i1 %79, label %pred.store.if70, label %pred.store.continue71

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

pred.store.continue71:                            ; preds = %pred.store.if70, %vec.epilog.vector.body
  %82 = extractelement <8 x i1> %78, i64 1
  br i1 %82, label %pred.store.if72, label %pred.store.continue73

pred.store.if72:                                  ; preds = %pred.store.continue71
  %83 = or disjoint i64 %index67, 1
  %84 = getelementptr inbounds i8, ptr %3, i64 %83
  %85 = extractelement <8 x i8> %wide.load68, i64 1
  store i8 %85, ptr %84, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue73

pred.store.continue73:                            ; preds = %pred.store.if72, %pred.store.continue71
  %86 = extractelement <8 x i1> %78, i64 2
  br i1 %86, label %pred.store.if74, label %pred.store.continue75

pred.store.if74:                                  ; preds = %pred.store.continue73
  %87 = or disjoint i64 %index67, 2
  %88 = getelementptr inbounds i8, ptr %3, i64 %87
  %89 = extractelement <8 x i8> %wide.load68, i64 2
  store i8 %89, ptr %88, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue75

pred.store.continue75:                            ; preds = %pred.store.if74, %pred.store.continue73
  %90 = extractelement <8 x i1> %78, i64 3
  br i1 %90, label %pred.store.if76, label %pred.store.continue77

pred.store.if76:                                  ; preds = %pred.store.continue75
  %91 = or disjoint i64 %index67, 3
  %92 = getelementptr inbounds i8, ptr %3, i64 %91
  %93 = extractelement <8 x i8> %wide.load68, i64 3
  store i8 %93, ptr %92, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue77

pred.store.continue77:                            ; preds = %pred.store.if76, %pred.store.continue75
  %94 = extractelement <8 x i1> %78, i64 4
  br i1 %94, label %pred.store.if78, label %pred.store.continue79

pred.store.if78:                                  ; preds = %pred.store.continue77
  %95 = or disjoint i64 %index67, 4
  %96 = getelementptr inbounds i8, ptr %3, i64 %95
  %97 = extractelement <8 x i8> %wide.load68, i64 4
  store i8 %97, ptr %96, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue79

pred.store.continue79:                            ; preds = %pred.store.if78, %pred.store.continue77
  %98 = extractelement <8 x i1> %78, i64 5
  br i1 %98, label %pred.store.if80, label %pred.store.continue81

pred.store.if80:                                  ; preds = %pred.store.continue79
  %99 = or disjoint i64 %index67, 5
  %100 = getelementptr inbounds i8, ptr %3, i64 %99
  %101 = extractelement <8 x i8> %wide.load68, i64 5
  store i8 %101, ptr %100, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue81

pred.store.continue81:                            ; preds = %pred.store.if80, %pred.store.continue79
  %102 = extractelement <8 x i1> %78, i64 6
  br i1 %102, label %pred.store.if82, label %pred.store.continue83

pred.store.if82:                                  ; preds = %pred.store.continue81
  %103 = or disjoint i64 %index67, 6
  %104 = getelementptr inbounds i8, ptr %3, i64 %103
  %105 = extractelement <8 x i8> %wide.load68, i64 6
  store i8 %105, ptr %104, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue83

pred.store.continue83:                            ; preds = %pred.store.if82, %pred.store.continue81
  %106 = extractelement <8 x i1> %78, i64 7
  br i1 %106, label %pred.store.if84, label %pred.store.continue85

pred.store.if84:                                  ; preds = %pred.store.continue83
  %107 = or disjoint i64 %index67, 7
  %108 = getelementptr inbounds i8, ptr %3, i64 %107
  %109 = extractelement <8 x i8> %wide.load68, i64 7
  store i8 %109, ptr %108, align 1, !tbaa !5, !alias.scope !20, !noalias !17
  br label %pred.store.continue85

pred.store.continue85:                            ; preds = %pred.store.if84, %pred.store.continue83
  %index.next86 = add nuw i64 %index67, 8
  %110 = icmp eq i64 %index.next86, %n.vec66
  br i1 %110, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !22

vec.epilog.middle.block:                          ; preds = %pred.store.continue85
  br i1 %cmp.n87, 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
  %.024.us.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec66, %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 %.02127.us, i64 %.024.us.ph
  %112 = load i8, ptr %111, align 1, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %3, i64 %.024.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 %.024.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
  %.024.us.unr = phi i64 [ %.024.us.ph, %vec.epilog.scalar.ph.preheader ], [ %117, %vec.epilog.scalar.ph.prol.loopexit.unr-lcssa ]
  %118 = icmp eq i64 %.024.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
  %.024.us = phi i64 [ %133, %132 ], [ %.024.us.unr, %vec.epilog.scalar.ph.prol.loopexit ]
  %119 = getelementptr inbounds i8, ptr %.02127.us, i64 %.024.us
  %120 = load i8, ptr %119, align 1, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %3, i64 %.024.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 %.024.us, 1
  %126 = getelementptr inbounds i8, ptr %.02127.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 %.024.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 %.02226.us, 1
  %exitcond30.not = icmp eq i64 %134, %1
  br i1 %exitcond30.not, label %._crit_edge28, label %iter.check, !llvm.loop !24

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

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

!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