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
34 changes: 15 additions & 19 deletions bench/actix-rs/optimized/4zcw438fefceam0r.ll
Original file line number Diff line number Diff line change
Expand Up @@ -6356,27 +6356,23 @@ define hidden void @"_ZN5tokio3net3tcp6stream9TcpStream11connect_mio28_$u7b$$u7b
; Function Attrs: nonlazybind uwtable
define hidden void @"_ZN61_$LT$$u5b$V$u5d$$u20$as$u20$alloc..slice..Concat$LT$T$GT$$GT$6concat17hba7a77accfed8121E"(ptr noalias noundef writeonly sret({ { i64, ptr, {} }, i64 }) align 8 captures(none) dereferenceable(24) %0, ptr noalias noundef nonnull readonly align 8 captures(address) %1, i64 noundef %2) unnamed_addr #1 personality ptr @rust_eh_personality {
%4 = alloca { { i64, ptr, {} }, i64 }, align 8
%.idx = shl nsw i64 %2, 4
%5 = getelementptr inbounds i8, ptr %1, i64 %.idx
%.idx = shl nuw nsw i64 %2, 4
%5 = getelementptr inbounds nuw i8, ptr %1, i64 %.idx
%6 = icmp eq i64 %2, 0
br i1 %6, label %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h7c4a50b1c0ae525dE.exit", label %7

7: ; preds = %3
%8 = and i64 %2, 1152921504606846975
br label %9

9: ; preds = %9, %7
%.017.i = phi i64 [ 0, %7 ], [ %11, %9 ]
%.016.i = phi i64 [ 0, %7 ], [ %12, %9 ]
%10 = getelementptr { ptr, i64 }, ptr %1, i64 %.016.i, i32 1
%.val21.i = load i64, ptr %10, align 8, !noundef !4
%11 = add i64 %.val21.i, %.017.i
%12 = add nuw i64 %.016.i, 1
%13 = icmp eq i64 %12, %8
br i1 %13, label %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h7c4a50b1c0ae525dE.exit", label %9

"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h7c4a50b1c0ae525dE.exit": ; preds = %9, %3
%.0.i = phi i64 [ 0, %3 ], [ %11, %9 ]
7: ; preds = %3, %7
%.017.i = phi i64 [ %8, %.preheader ], [ 0, %3 ]
%.016.i = phi i64 [ %9, %.preheader ], [ 0, %3 ]
%7 = getelementptr { ptr, i64 }, ptr %1, i64 %.016.i, i32 1
%.val21.i = load i64, ptr %7, align 8, !noundef !4
%8 = add i64 %.val21.i, %.017.i
%9 = add nuw i64 %.016.i, 1
%10 = icmp eq i64 %9, %2
br i1 %10, label %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h7c4a50b1c0ae525dE.exit", label %7

"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h7c4a50b1c0ae525dE.exit":; preds = %.preheader, %3
%.0.i = phi i64 [ 0, %3 ], [ %8, %.preheader ]
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4)
%14 = tail call { i64, ptr } @"_ZN5alloc7raw_vec19RawVec$LT$T$C$A$GT$11allocate_in17h7bd03435afd6f60aE"(i64 noundef %.0.i, i1 noundef zeroext false)
%15 = extractvalue { i64, ptr } %14, 0
Expand All @@ -6392,7 +6388,7 @@ define hidden void @"_ZN61_$LT$$u5b$V$u5d$$u20$as$u20$alloc..slice..Concat$LT$T$
%20 = landingpad { ptr, i32 }
cleanup
invoke void @"_ZN4core3ptr46drop_in_place$LT$alloc..vec..Vec$LT$u8$GT$$GT$17h9b6e01848106ce32E"(ptr noalias noundef nonnull align 8 dereferenceable(24) %4) #24
to label %39 unwind label %37
to label %36 unwind label %37

._crit_edge: ; preds = %"_ZN5alloc3vec16Vec$LT$T$C$A$GT$17extend_from_slice17hb1406ca275f9020eE.exit", %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h7c4a50b1c0ae525dE.exit"
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i64 24, i1 false)
Expand Down
74 changes: 35 additions & 39 deletions bench/coreutils-rs/optimized/2bkc75d8ztsl0xor.ll
Original file line number Diff line number Diff line change
Expand Up @@ -638,68 +638,64 @@ define hidden void @"_ZN83_$LT$std..io..buffered..bufwriter..BufWriter$LT$W$GT$$

"_ZN57_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$17is_write_vectored17hebf8f787d92fe799E.exit": ; preds = %"_ZN61_$LT$std..io..stdio..StdoutLock$u20$as$u20$std..io..Write$GT$17is_write_vectored17h5e7ac702d283f87bE.exit.i.i", %19, %23
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5), !noalias !52
%.idx = shl nsw i64 %3, 4
%27 = getelementptr inbounds i8, ptr %2, i64 %.idx
%.idx = shl nuw nsw i64 %3, 4
%27 = getelementptr inbounds nuw i8, ptr %2, i64 %.idx
%28 = icmp eq i64 %3, 0
br i1 %28, label %.thread, label %29

29: ; preds = %"_ZN57_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$17is_write_vectored17hebf8f787d92fe799E.exit"
%30 = and i64 %3, 1152921504606846975
br label %31

31: ; preds = %31, %29
%.017.i = phi i64 [ 0, %29 ], [ %33, %31 ]
%.016.i = phi i64 [ 0, %29 ], [ %34, %31 ]
%32 = getelementptr { { { ptr, i64 }, {} } }, ptr %2, i64 %.016.i, i32 0, i32 0, i32 1
%.val.i = load i64, ptr %32, align 8, !noundef !7
%33 = tail call noundef i64 @llvm.uadd.sat.i64(i64 %.017.i, i64 %.val.i)
%34 = add nuw i64 %.016.i, 1
%35 = icmp eq i64 %34, %30
br i1 %35, label %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit", label %31

"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit": ; preds = %31
%36 = load i64, ptr %1, align 8, !noundef !7
%37 = getelementptr inbounds nuw i8, ptr %1, i64 16
%38 = load i64, ptr %37, align 8, !noundef !7
%39 = sub i64 %36, %38
%40 = icmp ugt i64 %33, %39
br i1 %40, label %41, label %44

41: ; preds = %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit"
%42 = tail call noundef ptr @"_ZN3std2io8buffered9bufwriter18BufWriter$LT$W$GT$9flush_buf17h9ae52eb9fe414100E"(ptr noalias noundef nonnull align 8 dereferenceable(40) %1)
%43 = icmp eq ptr %42, null
br i1 %43, label %._crit_edge, label %47

._crit_edge: ; preds = %41
29: ; preds = %"_ZN57_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$17is_write_vectored17hebf8f787d92fe799E.exit", %29
%.017.i = phi i64 [ %30, %.preheader ], [ 0, %"_ZN57_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$17is_write_vectored17hebf8f787d92fe799E.exit" ]
%.016.i = phi i64 [ %31, %.preheader ], [ 0, %"_ZN57_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$17is_write_vectored17hebf8f787d92fe799E.exit" ]
%29 = getelementptr { { { ptr, i64 }, {} } }, ptr %2, i64 %.016.i, i32 0, i32 0, i32 1
%.val.i = load i64, ptr %29, align 8, !noundef !7
%30 = tail call noundef i64 @llvm.uadd.sat.i64(i64 %.017.i, i64 %.val.i)
%31 = add nuw i64 %.016.i, 1
%32 = icmp eq i64 %31, %3
br i1 %32, label %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit", label %29

"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit":; preds = %.preheader
%33 = load i64, ptr %1, align 8, !noundef !7
%34 = getelementptr inbounds nuw i8, ptr %1, i64 16
%35 = load i64, ptr %34, align 8, !noundef !7
%36 = sub i64 %33, %35
%37 = icmp ugt i64 %30, %36
br i1 %37, label %38, label %41

38:; preds = %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit"
%39 = tail call noundef ptr @"_ZN3std2io8buffered9bufwriter18BufWriter$LT$W$GT$9flush_buf17h9ae52eb9fe414100E"(ptr noalias noundef nonnull align 8 dereferenceable(40) %1)
%40 = icmp eq ptr %39, null
br i1 %40, label %._crit_edge, label %44

._crit_edge:; preds = %38
%.pre = load i64, ptr %1, align 8
br label %44

44: ; preds = %._crit_edge, %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit"
%45 = phi i64 [ %.pre, %._crit_edge ], [ %36, %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit" ]
%.not = icmp ult i64 %33, %45
%45 = phi i64 [ %.pre, %._crit_edge ], [ %33, %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h1a76e44a66c0934cE.exit" ]
%.not = icmp ult i64 %30, %45
br i1 %.not, label %.lr.ph.i, label %59

.thread: ; preds = %"_ZN57_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$17is_write_vectored17hebf8f787d92fe799E.exit"
%46 = load i64, ptr %1, align 8, !noundef !7
%.not61.not = icmp eq i64 %46, 0
br i1 %.not61.not, label %59, label %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$8for_each17h12a77a6f53a88392E.exit"

47: ; preds = %41
47: ; preds = %38
%48 = getelementptr inbounds nuw i8, ptr %0, i64 8
store ptr %42, ptr %48, align 8
store ptr %39, ptr %48, align 8
store i64 1, ptr %0, align 8
br label %61

.lr.ph.i: ; preds = %44
tail call void @llvm.experimental.noalias.scope.decl(metadata !62)
%49 = getelementptr inbounds nuw i8, ptr %1, i64 8
%50 = load ptr, ptr %49, align 8, !alias.scope !62, !nonnull !7, !noundef !7
%.promoted.i = load i64, ptr %37, align 8, !alias.scope !62
%.promoted.i = load i64, ptr %34, align 8, !alias.scope !62
br label %51

51: ; preds = %51, %.lr.ph.i
%52 = phi i64 [ %.promoted.i, %.lr.ph.i ], [ %56, %51 ]
%.sroa.0.08.i = phi ptr [ %2, %.lr.ph.i ], [ %53, %51 ]
%52 = phi i64 [ %.promoted.i, %.lr.ph.i ], [ %56, %48 ]
%.sroa.0.08.i = phi ptr [ %2, %.lr.ph.i ], [ %53, %48 ]
%53 = getelementptr inbounds nuw i8, ptr %.sroa.0.08.i, i64 16
%.val3.i = load ptr, ptr %.sroa.0.08.i, align 8, !noalias !62, !noundef !7
%54 = getelementptr i8, ptr %.sroa.0.08.i, i64 8
Expand All @@ -711,11 +707,11 @@ define hidden void @"_ZN83_$LT$std..io..buffered..bufwriter..BufWriter$LT$W$GT$$
br i1 %57, label %._crit_edge.i, label %51

._crit_edge.i: ; preds = %51
store i64 %56, ptr %37, align 8, !alias.scope !62
store i64 %56, ptr %34, align 8, !alias.scope !62
br label %"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$8for_each17h12a77a6f53a88392E.exit"

"_ZN91_$LT$core..slice..iter..Iter$LT$T$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$8for_each17h12a77a6f53a88392E.exit": ; preds = %.thread, %._crit_edge.i
%.0.i596265 = phi i64 [ %33, %._crit_edge.i ], [ 0, %.thread ]
%.0.i596265 = phi i64 [ %30, %._crit_edge.i ], [ 0, %.thread ]
%58 = getelementptr inbounds nuw i8, ptr %0, i64 8
store i64 %.0.i596265, ptr %58, align 8
store i64 0, ptr %0, align 8
Expand Down
Loading