; LLVM IR from Try/Tempest :: Engine/libspirv/libspirv.ll (ZN8libspirv15MutableBytecode10removeNopsEv)

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

%"class.libspirv::MutableBytecode" = type { %"class.libspirv::Bytecode.base", %"class.std::vector" }
%"class.libspirv::Bytecode.base" = type <{ ptr, i64, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.libspirv::Bytecode::OpCode" = type { i16, i16 }

; 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) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8libspirv15MutableBytecode10removeNopsEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 5, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %10 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %9, i32 0, i32 1
  %11 = call noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %12 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %11, i64 5
  store ptr %12, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %13, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %14 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %9, i32 0, i32 1
  %15 = call noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  %16 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %9, i32 0, i32 1
  %17 = call noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  %18 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %15, i64 %17
  store ptr %18, ptr %6, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %60, %29, %1
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = icmp ne ptr %20, %21
  br i1 %22, label %23, label %75

23:                                               ; preds = %19
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %24, i32 0, i32 0
  %26 = load i16, ptr %25, align 4, !tbaa !11
  %27 = zext i16 %26 to i32
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %37

29:                                               ; preds = %23
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %30, i32 0, i32 1
  %32 = load i16, ptr %31, align 2, !tbaa !14
  %33 = zext i16 %32 to i32
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = sext i32 %33 to i64
  %36 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %34, i64 %35
  store ptr %36, ptr %4, align 8, !tbaa !5
  br label %19, !llvm.loop !15

37:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #4
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %38, i32 0, i32 1
  %40 = load i16, ptr %39, align 2, !tbaa !14
  store i16 %40, ptr %7, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #4
  store i16 0, ptr %8, align 2, !tbaa !17
  br label %41

41:                                               ; preds = %57, %37
  %42 = load i16, ptr %8, align 2, !tbaa !17
  %43 = zext i16 %42 to i32
  %44 = load i16, ptr %7, align 2, !tbaa !17
  %45 = zext i16 %44 to i32
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #4
  br label %60

48:                                               ; preds = %41
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load i16, ptr %8, align 2, !tbaa !17
  %51 = zext i16 %50 to i64
  %52 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %49, i64 %51
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load i16, ptr %8, align 2, !tbaa !17
  %55 = zext i16 %54 to i64
  %56 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %53, i64 %55
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %52, i64 4, i1 false), !tbaa.struct !18
  br label %57

57:                                               ; preds = %48
  %58 = load i16, ptr %8, align 2, !tbaa !17
  %59 = add i16 %58, 1
  store i16 %59, ptr %8, align 2, !tbaa !17
  br label %41, !llvm.loop !19

60:                                               ; preds = %47
  %61 = load i16, ptr %7, align 2, !tbaa !17
  %62 = zext i16 %61 to i32
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = sext i32 %62 to i64
  %65 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %63, i64 %64
  store ptr %65, ptr %5, align 8, !tbaa !5
  %66 = load i16, ptr %7, align 2, !tbaa !17
  %67 = zext i16 %66 to i64
  %68 = load i64, ptr %3, align 8, !tbaa !9
  %69 = add i64 %68, %67
  store i64 %69, ptr %3, align 8, !tbaa !9
  %70 = load i16, ptr %7, align 2, !tbaa !17
  %71 = zext i16 %70 to i32
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = sext i32 %71 to i64
  %74 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %72, i64 %73
  store ptr %74, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #4
  br label %19, !llvm.loop !15

75:                                               ; preds = %19
  %76 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %9, i32 0, i32 1
  %77 = load i64, ptr %3, align 8, !tbaa !9
  call void @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %77)
  call void @_ZN8libspirv15MutableBytecode21invalidateSpvPointersEv(ptr noundef nonnull align 8 dereferenceable(48) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8libspirv15MutableBytecode21invalidateSpvPointersEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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


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

%"struct.libspirv::Bytecode::OpCode" = type { i16, i16 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8libspirv15MutableBytecode10removeNopsEv(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = tail call noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #2
  %4 = getelementptr inbounds i8, ptr %3, i64 20
  %5 = tail call noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #2
  %6 = tail call noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #2
  %7 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %5, i64 %6
  %.not2633 = icmp eq ptr %4, %7
  br i1 %.not2633, label %.outer._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %.outer
  %.021.ph36 = phi i64 [ %31, %.outer ], [ 5, %1 ]
  %.022.ph35 = phi ptr [ %32, %.outer ], [ %4, %1 ]
  %.023.ph34 = phi ptr [ %30, %.outer ], [ %4, %1 ]
  %.023.ph3449 = ptrtoint ptr %.023.ph34 to i64
  br label %8

8:                                                ; preds = %.lr.ph, %11
  %.02227 = phi ptr [ %.022.ph35, %.lr.ph ], [ %15, %11 ]
  %9 = load i16, ptr %.02227, align 4, !tbaa !5
  %10 = icmp eq i16 %9, 0
  br i1 %10, label %11, label %16

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %.02227, i64 2
  %13 = load i16, ptr %12, align 2, !tbaa !10
  %14 = zext i16 %13 to i64
  %15 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %14
  %.not = icmp eq ptr %15, %7
  br i1 %.not, label %.outer._crit_edge, label %8, !llvm.loop !11

16:                                               ; preds = %8
  %17 = getelementptr inbounds i8, ptr %.02227, i64 2
  %18 = load i16, ptr %17, align 2, !tbaa !10
  %.not38 = icmp eq i16 %18, 0
  br i1 %.not38, label %.outer, label %.lr.ph31.preheader

.lr.ph31.preheader:                               ; preds = %16
  %.02227.lcssa50 = ptrtoint ptr %.02227 to i64
  %wide.trip.count = zext i16 %18 to i64
  %min.iters.check = icmp ult i16 %18, 8
  %19 = sub i64 %.023.ph3449, %.02227.lcssa50
  %diff.check = icmp ult i64 %19, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %.lr.ph31.preheader52, label %vector.ph

.lr.ph31.preheader52:                             ; preds = %middle.block, %.lr.ph31.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph31.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph31.prol.loopexit, label %.lr.ph31.prol

.lr.ph31.prol:                                    ; preds = %.lr.ph31.preheader52, %.lr.ph31.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph31.prol ], [ %indvars.iv.ph, %.lr.ph31.preheader52 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph31.prol ], [ 0, %.lr.ph31.preheader52 ]
  %20 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %indvars.iv.prol
  %21 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.023.ph34, i64 %indvars.iv.prol
  %22 = load i32, ptr %20, align 4
  store i32 %22, ptr %21, align 4
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph31.prol.loopexit, label %.lr.ph31.prol, !llvm.loop !13

.lr.ph31.prol.loopexit:                           ; preds = %.lr.ph31.prol, %.lr.ph31.preheader52
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph31.preheader52 ], [ %indvars.iv.next.prol, %.lr.ph31.prol ]
  %23 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %24 = icmp ugt i64 %23, -4
  br i1 %24, label %.outer, label %.lr.ph31

vector.ph:                                        ; preds = %.lr.ph31.preheader
  %n.vec = and i64 %wide.trip.count, 65528
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %25 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %index
  %26 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.023.ph34, i64 %index
  %27 = getelementptr inbounds i8, ptr %25, i64 16
  %wide.load = load <4 x i32>, ptr %25, align 4
  %wide.load51 = load <4 x i32>, ptr %27, align 4
  %28 = getelementptr inbounds i8, ptr %26, i64 16
  store <4 x i32> %wide.load, ptr %26, align 4
  store <4 x i32> %wide.load51, ptr %28, align 4
  %index.next = add nuw i64 %index, 8
  %29 = icmp eq i64 %index.next, %n.vec
  br i1 %29, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.outer, label %.lr.ph31.preheader52

.outer:                                           ; preds = %.lr.ph31.prol.loopexit, %.lr.ph31, %middle.block, %16
  %.pre-phi = phi i64 [ 0, %16 ], [ %wide.trip.count, %middle.block ], [ %wide.trip.count, %.lr.ph31 ], [ %wide.trip.count, %.lr.ph31.prol.loopexit ]
  %30 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.023.ph34, i64 %.pre-phi
  %31 = add i64 %.021.ph36, %.pre-phi
  %32 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %.pre-phi
  %.not26 = icmp eq ptr %32, %7
  br i1 %.not26, label %.outer._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph31:                                         ; preds = %.lr.ph31.prol.loopexit, %.lr.ph31
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph31 ], [ %indvars.iv.unr, %.lr.ph31.prol.loopexit ]
  %33 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %indvars.iv
  %34 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.023.ph34, i64 %indvars.iv
  %35 = load i32, ptr %33, align 4
  store i32 %35, ptr %34, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %indvars.iv.next
  %37 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.023.ph34, i64 %indvars.iv.next
  %38 = load i32, ptr %36, align 4
  store i32 %38, ptr %37, align 4
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %39 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %indvars.iv.next.1
  %40 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.023.ph34, i64 %indvars.iv.next.1
  %41 = load i32, ptr %39, align 4
  store i32 %41, ptr %40, align 4
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %42 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.02227, i64 %indvars.iv.next.2
  %43 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %.023.ph34, i64 %indvars.iv.next.2
  %44 = load i32, ptr %42, align 4
  store i32 %44, ptr %43, align 4
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.outer, label %.lr.ph31, !llvm.loop !18

.outer._crit_edge:                                ; preds = %.outer, %11, %1
  %.021.ph.lcssa = phi i64 [ 5, %1 ], [ %.021.ph36, %11 ], [ %31, %.outer ]
  tail call void @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.021.ph.lcssa)
  tail call void @_ZN8libspirv15MutableBytecode21invalidateSpvPointersEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8libspirv15MutableBytecode21invalidateSpvPointersEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

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


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass