Skip to content
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
14 changes: 9 additions & 5 deletions bench/cmake/optimized/zstd_ldm.ll
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,15 @@ define dso_local range(i64 -119, 1) i64 @ZSTD_ldm_generateSequences(ptr noundef
%9 = load i32, ptr %8, align 4, !tbaa !9
%10 = shl nuw i32 1, %9
%11 = getelementptr inbounds nuw i8, ptr %3, i64 %4
%.not = icmp eq i64 %4, 0
br i1 %.not, label %.critedge, label %.lr.ph

.lr.ph: ; preds = %5
%12 = lshr i64 %4, 20
%13 = and i64 %4, 1048575
%14 = icmp ne i64 %13, 0
%15 = zext i1 %14 to i64
%16 = add nuw nsw i64 %12, %15
%.not = icmp eq i64 %16, 0
br i1 %.not, label %.critedge, label %.lr.ph

.lr.ph: ; preds = %5
%17 = getelementptr inbounds nuw i8, ptr %1, i64 24
%18 = getelementptr inbounds nuw i8, ptr %1, i64 32
%19 = getelementptr inbounds nuw i8, ptr %0, i64 48
Expand All @@ -408,6 +408,7 @@ define dso_local range(i64 -119, 1) i64 @ZSTD_ldm_generateSequences(ptr noundef
%31 = getelementptr i8, ptr %2, i64 16
%32 = getelementptr inbounds nuw i8, ptr %6, i64 8
%33 = getelementptr i8, ptr %0, i64 56
%umax = tail call i64 @llvm.umax.i64(i64 %16, i64 1)
%.pre = load i64, ptr %17, align 8, !tbaa !36
br label %34

Expand Down Expand Up @@ -1284,7 +1285,7 @@ ZSTD_ldm_generateSequences_internal.exit._crit_edge: ; preds = %ZSTD_ldm_generat
413: ; preds = %405, %411
%.15778 = phi i64 [ %.0.i69, %405 ], [ %412, %411 ]
%414 = add nuw nsw i64 %.05588, 1
%exitcond.not = icmp eq i64 %414, %16
%exitcond.not = icmp eq i64 %414, %umax
br i1 %exitcond.not, label %.critedge, label %34, !llvm.loop !67

.critedge: ; preds = %413, %34, %ZSTD_ldm_generateSequences_internal.exit, %5, %ZSTD_ldm_generateSequences_internal.exit.thread72
Expand Down Expand Up @@ -1899,6 +1900,9 @@ declare i32 @llvm.umax.i32(i32, i32) #11
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.usub.sat.i32(i32, i32) #11

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #11

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) 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 nofree norecurse nosync nounwind willreturn memory(argmem: read) 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
Expand Down
16 changes: 6 additions & 10 deletions bench/duckdb/optimized/bignum.ll
Original file line number Diff line number Diff line change
Expand Up @@ -1542,12 +1542,10 @@ define hidden noundef range(i32 -16, 1) i32 @mbedtls_mpi_read_binary(ptr noundef
%17 = getelementptr inbounds nuw i8, ptr %16, i64 %14
tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 %1, i64 %2, i1 false)
%18 = load ptr, ptr %15, align 8, !tbaa !11
%19 = icmp eq i64 %8, 0
%20 = getelementptr i64, ptr %18, i64 %8
%.01214.i = getelementptr i8, ptr %20, i64 -8
%19 = getelementptr i64, ptr %18, i64 %8
%20 = getelementptr i8, ptr %19, i64 -8
%.not15.i = icmp ugt ptr %18, %.01214.i
%or.cond.i = or i1 %19, %.not15.i
br i1 %or.cond.i, label %_ZL21mpi_bigendian_to_hostPmm.exit, label %.lr.ph.i
br i1 %.not15.i, label %_ZL21mpi_bigendian_to_hostPmm.exit, label %.lr.ph.i

.lr.ph.i: ; preds = %12, %.lr.ph.i
%.01217.i = phi ptr [ %.012.i, %.lr.ph.i ], [ %.01214.i, %12 ]
Expand Down Expand Up @@ -5978,12 +5976,10 @@ define hidden noundef i32 @mbedtls_mpi_fill_random(ptr noundef captures(address_

30: ; preds = %17
%31 = load ptr, ptr %20, align 8, !tbaa !11
%32 = icmp eq i64 %9, 0
%33 = getelementptr i64, ptr %31, i64 %9
%.01214.i.i = getelementptr i8, ptr %33, i64 -8
%32 = getelementptr i64, ptr %31, i64 %9
%33 = getelementptr i8, ptr %32, i64 -8
%.not15.i.i = icmp ugt ptr %31, %.01214.i.i
%or.cond.i.i = or i1 %32, %.not15.i.i
br i1 %or.cond.i.i, label %_ZL24mpi_fill_random_internalP11mbedtls_mpimPFiPvPhmES1_.exit, label %.lr.ph.i.i
br i1 %.not15.i.i, label %_ZL24mpi_fill_random_internalP11mbedtls_mpimPFiPvPhmES1_.exit, label %.lr.ph.i.i

.lr.ph.i.i: ; preds = %30, %.lr.ph.i.i
%.01217.i.i = phi ptr [ %.012.i.i, %.lr.ph.i.i ], [ %.01214.i.i, %30 ]
Expand Down
13 changes: 7 additions & 6 deletions bench/duckdb/optimized/ub_duckdb_storage_compression_roaring.ll
Original file line number Diff line number Diff line change
Expand Up @@ -7741,25 +7741,26 @@ _ZNSt6vectorImSaImEE11_S_relocateEPmS2_S2_RS0_.exit.i: ; preds = %63, %.noexc34
call void @_ZdlPv(ptr noundef nonnull %50) #29
br label %_ZNSt6vectorImSaImEE7reserveEm.exit.thread

_ZNSt6vectorImSaImEE7reserveEm.exit.thread: ; preds = %_ZNSt6vectorImSaImEE11_S_relocateEPmS2_S2_RS0_.exit.i, %64
_ZNSt6vectorImSaImEE7reserveEm.exit.thread: ; preds = %64, %_ZNSt6vectorImSaImEE11_S_relocateEPmS2_S2_RS0_.exit.i
store ptr %61, ptr %11, align 8, !tbaa !198
%65 = getelementptr inbounds nuw i8, ptr %61, i64 %59
store ptr %65, ptr %56, align 8, !tbaa !450
%66 = getelementptr inbounds nuw i64, ptr %61, i64 %spec.select
store ptr %66, ptr %48, align 8, !tbaa !449
br label %.lr.ph
br label %_ZNSt6vectorImSaImEE7reserveEm.exit

_ZNSt6vectorImSaImEE7reserveEm.exit: ; preds = %47
%.not79 = icmp eq i64 %spec.select, 0
_ZNSt6vectorImSaImEE7reserveEm.exit: ; preds = %_ZNSt6vectorImSaImEE7reserveEm.exit.thread, %47
%.not79 = icmp eq i64 %34, 0
br i1 %.not79, label %._crit_edge, label %.lr.ph

.lr.ph: ; preds = %_ZNSt6vectorImSaImEE7reserveEm.exit.thread, %_ZNSt6vectorImSaImEE7reserveEm.exit
.lr.ph: ; preds = %_ZNSt6vectorImSaImEE7reserveEm.exit
%67 = getelementptr inbounds nuw i8, ptr %4, i64 24
%68 = getelementptr inbounds nuw i8, ptr %4, i64 16
%69 = getelementptr inbounds nuw i8, ptr %4, i64 8
%70 = getelementptr inbounds nuw i8, ptr %0, i64 160
%71 = getelementptr inbounds nuw i8, ptr %0, i64 168
%72 = getelementptr inbounds nuw i8, ptr %0, i64 184
%umax = call i64 @llvm.umax.i64(i64 %spec.select, i64 1)
br label %77

._crit_edge: ; preds = %_ZN6duckdb7roaring16RoaringScanState10SkipVectorERKNS0_17ContainerMetadataE.exit, %_ZNSt6vectorImSaImEE7reserveEm.exit
Expand Down Expand Up @@ -8037,7 +8038,7 @@ _ZN6duckdb7roaring16RoaringScanState10SkipVectorERKNS0_17ContainerMetadataE.exit
%.0.i.i = phi i64 [ %.1.i.i, %160 ], [ %.2.i.i, %166 ], [ 256, %_ZNSt6vectorImSaImEE9push_backERKm.exit ]
%171 = add i64 %.0.i.i, %.1
%172 = add nuw nsw i64 %.078, 1
%exitcond.not = icmp eq i64 %172, %spec.select
%exitcond.not = icmp eq i64 %172, %umax
br i1 %exitcond.not, label %._crit_edge, label %77, !llvm.loop !456

173: ; preds = %.loopexit, %.loopexit.split-lp, %75
Expand Down
Loading