Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
488 changes: 235 additions & 253 deletions bench/darktable/optimized/histogram.c.ll

Large diffs are not rendered by default.

347 changes: 174 additions & 173 deletions bench/llvm/optimized/CVSymbolVisitor.cpp.ll

Large diffs are not rendered by default.

93 changes: 47 additions & 46 deletions bench/llvm/optimized/DebugChecksumsSubsection.cpp.ll

Large diffs are not rendered by default.

61 changes: 31 additions & 30 deletions bench/llvm/optimized/DebugSubsectionRecord.cpp.ll
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,8 @@ _ZN4llvm18BinaryStreamReader10readObjectINS_8codeview21DebugSubsectionHeaderEEEN
br label %.critedge

_ZN4llvm5ErrorD2Ev.exit: ; preds = %_ZN4llvm15BinaryStreamRefD2Ev.exit
%57 = load ptr, ptr %4, align 8, !noalias !4
%57 = load ptr, ptr %4, align 8, !noalias !4, !align !7, !noundef !8
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4)
call void @llvm.assume(i1 true) [ "align"(ptr %57, i64 1) ]
%.0.copyload.i.i.i = load i32, ptr %57, align 1
%58 = getelementptr inbounds nuw i8, ptr %2, i64 8
%59 = getelementptr inbounds nuw i8, ptr %57, i64 4
Expand Down Expand Up @@ -530,24 +529,24 @@ define dso_local noundef range(i32 8, 5) i32 @_ZNK4llvm8codeview28DebugSubsectio

7: ; preds = %1
%8 = getelementptr inbounds nuw i8, ptr %0, i64 32
%9 = load ptr, ptr %8, align 8, !noalias !7
%9 = load ptr, ptr %8, align 8, !noalias !9
%.not.i.i.i.i.i.i = icmp eq ptr %9, null
br i1 %.not.i.i.i.i.i.i, label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit, label %10

10: ; preds = %7
%11 = getelementptr inbounds nuw i8, ptr %9, i64 8
%12 = load i8, ptr @__libc_single_threaded, align 1, !noalias !7
%12 = load i8, ptr @__libc_single_threaded, align 1, !noalias !9
%.not.i.i.i.i.i.i.i = icmp eq i8 %12, 0
br i1 %.not.i.i.i.i.i.i.i, label %16, label %13

13: ; preds = %10
%14 = load i32, ptr %11, align 4, !noalias !7
%14 = load i32, ptr %11, align 4, !noalias !9
%15 = add nsw i32 %14, 1
store i32 %15, ptr %11, align 4, !noalias !7
store i32 %15, ptr %11, align 4, !noalias !9
br label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit

16: ; preds = %10
%17 = atomicrmw volatile add ptr %11, i32 1 acq_rel, align 4, !noalias !7
%17 = atomicrmw volatile add ptr %11, i32 1 acq_rel, align 4, !noalias !9
br label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit

_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit: ; preds = %7, %13, %16
Expand Down Expand Up @@ -684,24 +683,24 @@ define dso_local void @_ZNK4llvm8codeview28DebugSubsectionRecordBuilder6commitER
call void @llvm.assume(i1 true) [ "align"(ptr %5, i64 1) ]
store i32 %16, ptr %5, align 4
%17 = getelementptr inbounds nuw i8, ptr %1, i64 32
%18 = load ptr, ptr %17, align 8, !noalias !10
%18 = load ptr, ptr %17, align 8, !noalias !12
%.not.i.i.i.i.i.i = icmp eq ptr %18, null
br i1 %.not.i.i.i.i.i.i, label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit, label %19

19: ; preds = %14
%20 = getelementptr inbounds nuw i8, ptr %18, i64 8
%21 = load i8, ptr @__libc_single_threaded, align 1, !noalias !10
%21 = load i8, ptr @__libc_single_threaded, align 1, !noalias !12
%.not.i.i.i.i.i.i.i = icmp eq i8 %21, 0
br i1 %.not.i.i.i.i.i.i.i, label %25, label %22

22: ; preds = %19
%23 = load i32, ptr %20, align 4, !noalias !10
%23 = load i32, ptr %20, align 4, !noalias !12
%24 = add nsw i32 %23, 1
store i32 %24, ptr %20, align 4, !noalias !10
store i32 %24, ptr %20, align 4, !noalias !12
br label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit

25: ; preds = %19
%26 = atomicrmw volatile add ptr %20, i32 1 acq_rel, align 4, !noalias !10
%26 = atomicrmw volatile add ptr %20, i32 1 acq_rel, align 4, !noalias !12
br label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit

_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit: ; preds = %14, %22, %25
Expand Down Expand Up @@ -834,31 +833,31 @@ _ZN4llvm5ErrorD2Ev.exit27: ; preds = %83
br i1 %.not47, label %_ZN4llvm5ErrorD2Ev.exit39, label %_ZN4llvm12ErrorSuccessD2Ev.exit

89: ; preds = %83
call void @llvm.experimental.noalias.scope.decl(metadata !13)
call void @llvm.experimental.noalias.scope.decl(metadata !15)
%90 = getelementptr inbounds nuw i8, ptr %1, i64 24
%91 = load ptr, ptr %90, align 8, !noalias !13
store ptr %91, ptr %6, align 8, !alias.scope !13
%91 = load ptr, ptr %90, align 8, !noalias !15
store ptr %91, ptr %6, align 8, !alias.scope !15
%92 = getelementptr inbounds nuw i8, ptr %6, i64 8
%93 = getelementptr inbounds nuw i8, ptr %1, i64 32
%94 = load ptr, ptr %93, align 8, !noalias !13
store ptr %94, ptr %92, align 8, !alias.scope !13
%94 = load ptr, ptr %93, align 8, !noalias !15
store ptr %94, ptr %92, align 8, !alias.scope !15
%.not.i.i.i.i.i.i28 = icmp eq ptr %94, null
br i1 %.not.i.i.i.i.i.i28, label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit30, label %95

95: ; preds = %89
%96 = getelementptr inbounds nuw i8, ptr %94, i64 8
%97 = load i8, ptr @__libc_single_threaded, align 1, !noalias !13
%97 = load i8, ptr @__libc_single_threaded, align 1, !noalias !15
%.not.i.i.i.i.i.i.i29 = icmp eq i8 %97, 0
br i1 %.not.i.i.i.i.i.i.i29, label %101, label %98

98: ; preds = %95
%99 = load i32, ptr %96, align 4, !noalias !13
%99 = load i32, ptr %96, align 4, !noalias !15
%100 = add nsw i32 %99, 1
store i32 %100, ptr %96, align 4, !noalias !13
store i32 %100, ptr %96, align 4, !noalias !15
br label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit30

101: ; preds = %95
%102 = atomicrmw volatile add ptr %96, i32 1 acq_rel, align 4, !noalias !13
%102 = atomicrmw volatile add ptr %96, i32 1 acq_rel, align 4, !noalias !15
br label %_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit30

_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv.exit30: ; preds = %89, %98, %101
Expand Down Expand Up @@ -1084,12 +1083,14 @@ attributes #12 = { builtin nounwind }
!4 = !{!5}
!5 = distinct !{!5, !6, !"_ZN4llvm18BinaryStreamReader10readObjectINS_8codeview21DebugSubsectionHeaderEEENS_5ErrorERPKT_: argument 0"}
!6 = distinct !{!6, !"_ZN4llvm18BinaryStreamReader10readObjectINS_8codeview21DebugSubsectionHeaderEEENS_5ErrorERPKT_"}
!7 = !{!8}
!8 = distinct !{!8, !9, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv: argument 0"}
!9 = distinct !{!9, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv"}
!10 = !{!11}
!11 = distinct !{!11, !12, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv: argument 0"}
!12 = distinct !{!12, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv"}
!13 = !{!14}
!14 = distinct !{!14, !15, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv: argument 0"}
!15 = distinct !{!15, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv"}
!7 = !{i64 1}
!8 = !{}
!9 = !{!10}
!10 = distinct !{!10, !11, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv: argument 0"}
!11 = distinct !{!11, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv"}
!12 = !{!13}
!13 = distinct !{!13, !14, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv: argument 0"}
!14 = distinct !{!14, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv"}
!15 = !{!16}
!16 = distinct !{!16, !17, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv: argument 0"}
!17 = distinct !{!17, !"_ZNK4llvm8codeview21DebugSubsectionRecord13getRecordDataEv"}
57 changes: 28 additions & 29 deletions bench/llvm/optimized/FaultMapParser.cpp.ll
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ define dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN4llvmlsERNS

_ZN4llvm11raw_ostreamlsEPKc.exit: ; preds = %11, %13
%16 = phi ptr [ %.pre, %11 ], [ %15, %13 ]
%17 = load ptr, ptr %1, align 8
call void @llvm.assume(i1 true) [ "align"(ptr %17, i64 1) ]
%17 = load ptr, ptr %1, align 8, !align !4, !noundef !5
%.0.copyload.i.i.i.i.i.i = load i32, ptr %17, align 1
%18 = load ptr, ptr %3, align 8
%19 = ptrtoint ptr %18 to i64
Expand Down Expand Up @@ -262,20 +261,19 @@ define dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN4llvmlsERNS

_ZN4llvm11raw_ostreamlsEPKc.exit: ; preds = %13, %15
%.0.i.i = phi ptr [ %14, %13 ], [ %0, %15 ]
%18 = load ptr, ptr %1, align 8
call void @llvm.assume(i1 true) [ "align"(ptr %18, i64 1) ]
%18 = load ptr, ptr %1, align 8, !align !4, !noundef !5
%.0.copyload.i.i.i.i.i.i = load i64, ptr %18, align 1
store i64 %.0.copyload.i.i.i.i.i.i, ptr %3, align 8, !alias.scope !4
store i64 %.0.copyload.i.i.i.i.i.i, ptr %3, align 8, !alias.scope !6
%19 = getelementptr inbounds nuw i8, ptr %3, i64 8
store i64 0, ptr %19, align 8, !alias.scope !4
store i64 0, ptr %19, align 8, !alias.scope !6
%20 = getelementptr inbounds nuw i8, ptr %3, i64 16
store i32 8, ptr %20, align 8, !alias.scope !4
store i32 8, ptr %20, align 8, !alias.scope !6
%21 = getelementptr inbounds nuw i8, ptr %3, i64 20
store i8 1, ptr %21, align 4, !alias.scope !4
store i8 1, ptr %21, align 4, !alias.scope !6
%22 = getelementptr inbounds nuw i8, ptr %3, i64 21
store i8 0, ptr %22, align 1, !alias.scope !4
store i8 0, ptr %22, align 1, !alias.scope !6
%23 = getelementptr inbounds nuw i8, ptr %3, i64 22
store i8 1, ptr %23, align 2, !alias.scope !4
store i8 1, ptr %23, align 2, !alias.scope !6
%24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN4llvm11raw_ostreamlsERKNS_15FormattedNumberE(ptr noundef nonnull align 8 dereferenceable(48) %.0.i.i, ptr noundef nonnull align 8 dereferenceable(23) %3) #5
%25 = getelementptr inbounds nuw i8, ptr %24, i64 24
%26 = load ptr, ptr %25, align 8
Expand Down Expand Up @@ -367,7 +365,7 @@ _ZN4llvm11raw_ostreamlsEPKc.exit16: ; preds = %47, %49
_ZN4llvm11raw_ostreamlsEPKc.exit20: ; preds = %67, %69
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%.not = icmp eq i64 %indvars.iv.next, %56
br i1 %.not, label %._crit_edge, label %57, !llvm.loop !7
br i1 %.not, label %._crit_edge, label %57, !llvm.loop !9

._crit_edge: ; preds = %_ZN4llvm11raw_ostreamlsEPKc.exit20, %_ZN4llvm11raw_ostreamlsEPKc.exit16
ret ptr %0
Expand Down Expand Up @@ -402,21 +400,20 @@ define dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN4llvmlsERNS

_ZN4llvm11raw_ostreamlsEPKc.exit: ; preds = %13, %15
%.0.i.i = phi ptr [ %14, %13 ], [ %0, %15 ]
%18 = load ptr, ptr %1, align 8
call void @llvm.assume(i1 true) [ "align"(ptr %18, i64 1) ]
%18 = load ptr, ptr %1, align 8, !align !4, !noundef !5
%.0.copyload.i.i.i.i.i.i = load i8, ptr %18, align 1
%19 = zext i8 %.0.copyload.i.i.i.i.i.i to i64
store i64 %19, ptr %3, align 8, !alias.scope !9
store i64 %19, ptr %3, align 8, !alias.scope !11
%20 = getelementptr inbounds nuw i8, ptr %3, i64 8
store i64 0, ptr %20, align 8, !alias.scope !9
store i64 0, ptr %20, align 8, !alias.scope !11
%21 = getelementptr inbounds nuw i8, ptr %3, i64 16
store i32 2, ptr %21, align 8, !alias.scope !9
store i32 2, ptr %21, align 8, !alias.scope !11
%22 = getelementptr inbounds nuw i8, ptr %3, i64 20
store i8 1, ptr %22, align 4, !alias.scope !9
store i8 1, ptr %22, align 4, !alias.scope !11
%23 = getelementptr inbounds nuw i8, ptr %3, i64 21
store i8 0, ptr %23, align 1, !alias.scope !9
store i8 0, ptr %23, align 1, !alias.scope !11
%24 = getelementptr inbounds nuw i8, ptr %3, i64 22
store i8 1, ptr %24, align 2, !alias.scope !9
store i8 1, ptr %24, align 2, !alias.scope !11
%25 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN4llvm11raw_ostreamlsERKNS_15FormattedNumberE(ptr noundef nonnull align 8 dereferenceable(48) %.0.i.i, ptr noundef nonnull align 8 dereferenceable(23) %3) #5
%26 = getelementptr inbounds nuw i8, ptr %25, i64 24
%27 = load ptr, ptr %26, align 8
Expand Down Expand Up @@ -528,7 +525,7 @@ _ZN4llvm11raw_ostreamlsEPKc.exit25: ; preds = %56, %58
%81 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN4llvmlsERNS_11raw_ostreamERKNS_14FaultMapParser20FunctionInfoAccessorE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(16) %4)
%82 = add nuw i32 %.01433, 1
%.not = icmp eq i32 %82, %.0.copyload.i.i.i.i.i.i26
br i1 %.not, label %.loopexit, label %66, !llvm.loop !12
br i1 %.not, label %.loopexit, label %66, !llvm.loop !14

.loopexit: ; preds = %80, %_ZN4llvm11raw_ostreamlsEPKc.exit25
ret ptr %0
Expand Down Expand Up @@ -560,12 +557,14 @@ attributes #5 = { nounwind }
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"uwtable", i32 2}
!3 = !{i32 7, !"frame-pointer", i32 2}
!4 = !{!5}
!5 = distinct !{!5, !6, !"_ZN4llvm10format_hexEmjb: argument 0"}
!6 = distinct !{!6, !"_ZN4llvm10format_hexEmjb"}
!7 = distinct !{!7, !8}
!8 = !{!"llvm.loop.mustprogress"}
!9 = !{!10}
!10 = distinct !{!10, !11, !"_ZN4llvm10format_hexEmjb: argument 0"}
!11 = distinct !{!11, !"_ZN4llvm10format_hexEmjb"}
!12 = distinct !{!12, !8}
!4 = !{i64 1}
!5 = !{}
!6 = !{!7}
!7 = distinct !{!7, !8, !"_ZN4llvm10format_hexEmjb: argument 0"}
!8 = distinct !{!8, !"_ZN4llvm10format_hexEmjb"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12}
!12 = distinct !{!12, !13, !"_ZN4llvm10format_hexEmjb: argument 0"}
!13 = distinct !{!13, !"_ZN4llvm10format_hexEmjb"}
!14 = distinct !{!14, !10}
Loading