; LLVM IR from ermig1979/Simd :: src/Test/TestPerformance.ll (ZN4Test19PerformanceMeasurerC2ERKS0_)

; 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.Test::PerformanceMeasurer" = type { %"class.std::__cxx11::basic_string", double, i32, double, double, double, i8, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Test19PerformanceMeasurerC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8
  %6 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %5, i32 0, i32 0
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %7, i32 0, i32 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %8)
  %9 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %5, i32 0, i32 2
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %10, i32 0, i32 2
  %12 = load i32, ptr %11, align 8, !tbaa !9
  store i32 %12, ptr %9, align 8, !tbaa !9
  %13 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %5, i32 0, i32 3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %14, i32 0, i32 3
  %16 = load double, ptr %15, align 8, !tbaa !18
  store double %16, ptr %13, align 8, !tbaa !18
  %17 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %5, i32 0, i32 4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %18, i32 0, i32 4
  %20 = load double, ptr %19, align 8, !tbaa !19
  store double %20, ptr %17, align 8, !tbaa !19
  %21 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %5, i32 0, i32 5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %22, i32 0, i32 5
  %24 = load double, ptr %23, align 8, !tbaa !20
  store double %24, ptr %21, align 8, !tbaa !20
  %25 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %5, i32 0, i32 6
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %26, i32 0, i32 6
  %28 = load i8, ptr %27, align 8, !tbaa !21, !range !22, !noundef !23
  %29 = trunc i8 %28 to i1
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %25, align 8, !tbaa !21
  %31 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %5, i32 0, i32 7
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.Test::PerformanceMeasurer", ptr %32, i32 0, i32 7
  %34 = load i64, ptr %33, align 8, !tbaa !24
  store i64 %34, ptr %31, align 8, !tbaa !24
  ret void
}

attributes #0 = { 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" }

!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, !15, i64 40}
!10 = !{!"_ZTSN4Test19PerformanceMeasurerE", !11, i64 0, !14, i64 32, !15, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !16, i64 72, !17, i64 80}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!10, !14, i64 48}
!19 = !{!10, !14, i64 56}
!20 = !{!10, !14, i64 64}
!21 = !{!10, !16, i64 72}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!10, !17, i64 80}


; 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 uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Test19PerformanceMeasurerC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %1) unnamed_addr #0 align 2 {
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %4 = getelementptr inbounds i8, ptr %1, i64 40
  %5 = load i32, ptr %4, align 8, !tbaa !5
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = getelementptr inbounds i8, ptr %1, i64 48
  %8 = load <2 x double>, ptr %7, align 8, !tbaa !17
  store <2 x double> %8, ptr %6, align 8, !tbaa !17
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = getelementptr inbounds i8, ptr %1, i64 64
  %11 = load double, ptr %10, align 8, !tbaa !18
  store double %11, ptr %9, align 8, !tbaa !18
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  %13 = getelementptr inbounds i8, ptr %1, i64 72
  %14 = load i8, ptr %13, align 8, !tbaa !19, !range !20, !noundef !21
  store i8 %14, ptr %12, align 8, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %0, i64 80
  %16 = getelementptr inbounds i8, ptr %1, i64 80
  %17 = load i64, ptr %16, align 8, !tbaa !22
  store i64 %17, ptr %15, align 8, !tbaa !22
  ret void
}

attributes #0 = { 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" }

!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, !14, i64 40}
!6 = !{!"_ZTSN4Test19PerformanceMeasurerE", !7, i64 0, !13, i64 32, !14, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !15, i64 72, !16, i64 80}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = !{!"long long", !10, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!6, !13, i64 64}
!19 = !{!6, !15, i64 72}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !16, i64 80}


; Effective O3 passes: EarlyCSEPass,IPSCCPPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass