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
119 changes: 62 additions & 57 deletions bench/actix-rs/optimized/2wg1z1eatrkafji9.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4408,54 +4408,59 @@ define internal fastcc void @_ZN9hashbrown3raw13RawTableInner15rehash_in_place17
%5 = getelementptr inbounds nuw i8, ptr %0, i64 8
%.val16 = load i64, ptr %5, align 8, !noundef !42
%6 = add i64 %.val16, 1
%7 = lshr i64 %6, 4
%8 = and i64 %6, 15
%.not.i.i.i.i = icmp ne i64 %8, 0
%9 = zext i1 %.not.i.i.i.i to i64
%.0.i.i.i.i = add nuw nsw i64 %7, %9
%.not.not4.i = icmp eq i64 %.0.i.i.i.i, 0
br i1 %.not.not4.i, label %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit, label %.lr.ph.i
%.not.not4.i = icmp eq i64 %6, 0
br i1 %.not.not4.i, label %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit.thread19, label %.lr.ph.i

_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit.thread19:; preds = %3
%7 = icmp ne ptr %.val15, null
tail call void @llvm.assume(i1 %7)
%8 = getelementptr inbounds nuw i8, ptr %.val15, i64 16
tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %8, ptr nonnull align 1 %.val15, i64 %6, i1 false)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4)
br label %._crit_edge

.lr.ph.i: ; preds = %3
%10 = icmp ne ptr %.val15, null
tail call void @llvm.assume(i1 %10)
br label %11
%9 = lshr i64 %6, 4
%10 = and i64 %6, 15
%.not.i.i.i.i = icmp ne i64 %10, 0
%11 = zext i1 %.not.i.i.i.i to i64
%.0.i.i.i.i = add nuw nsw i64 %9, %11
%12 = icmp ne ptr %.val15, null
tail call void @llvm.assume(i1 %12)
br label %16

11: ; preds = %11, %.lr.ph.i
%.sroa.01.06.i = phi i64 [ 0, %.lr.ph.i ], [ %13, %11 ]
%.sroa.5.05.i = phi i64 [ %.0.i.i.i.i, %.lr.ph.i ], [ %12, %11 ]
%12 = add nsw i64 %.sroa.5.05.i, -1
%13 = add i64 %.sroa.01.06.i, 16
%14 = getelementptr inbounds i8, ptr %.val15, i64 %.sroa.01.06.i
%15 = load <16 x i8>, ptr %14, align 16, !noalias !751
%.lobit.i.i = ashr <16 x i8> %15, splat (i8 7)
%16 = bitcast <16 x i8> %.lobit.i.i to <2 x i64>
%17 = or <2 x i64> %16, splat (i64 -9187201950435737472)
store <2 x i64> %17, ptr %14, align 16, !noalias !754
%.not.not.i = icmp eq i64 %12, 0
br i1 %.not.not.i, label %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit, label %11

_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit: ; preds = %11, %3
%18 = icmp ne ptr %.val15, null
tail call void @llvm.assume(i1 %18)
%..i = tail call i64 @llvm.umax.i64(i64 %6, i64 16)
%.9.i = tail call i64 @llvm.umin.i64(i64 %6, i64 16)
%19 = getelementptr inbounds i8, ptr %.val15, i64 %..i
tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %19, ptr nonnull align 1 %.val15, i64 %.9.i, i1 false)
11: ; preds = %16
%spec.select = tail call i64 @llvm.umax.i64(i64 %6, i64 16)
%spec.select27 = tail call i64 @llvm.umin.i64(i64 %6, i64 16)
%13 = getelementptr inbounds i8, ptr %.val15, i64 %spec.select
tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %13, ptr nonnull align 1 %.val15, i64 %spec.select27, i1 false)
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4)
%20 = getelementptr inbounds nuw i8, ptr %4, i64 8
store ptr %2, ptr %20, align 8
%21 = getelementptr inbounds nuw i8, ptr %4, i64 16
store i64 32, ptr %21, align 8
store ptr %0, ptr %4, align 8
%.not9 = icmp eq i64 %6, 0
br i1 %.not9, label %._crit_edge, label %.lr.ph

22: ; preds = %_ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit
%23 = landingpad { ptr, i32 }
br label %.lr.ph

16: ; preds = %16, %.lr.ph.i
%.sroa.01.06.i = phi i64 [ 0, %.lr.ph.i ], [ %18, %16 ]
%.sroa.5.05.i = phi i64 [ %.0.i.i.i.i, %.lr.ph.i ], [ %17, %16 ]
%17 = add i64 %.sroa.5.05.i, -1
%18 = add i64 %.sroa.01.06.i, 16
%19 = getelementptr inbounds i8, ptr %.val15, i64 %.sroa.01.06.i
%20 = load <16 x i8>, ptr %19, align 16, !noalias !751
%.lobit.i.i = ashr <16 x i8> %20, splat (i8 7)
%21 = bitcast <16 x i8> %.lobit.i.i to <2 x i64>
%22 = or <2 x i64> %21, splat (i64 -9187201950435737472)
store <2 x i64> %22, ptr %19, align 16, !noalias !754
%.not.not.i = icmp eq i64 %17, 0
br i1 %.not.not.i, label %._crit_edge.i, label %16

23: ; preds = %_ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit
%24 = landingpad { ptr, i32 }
cleanup
invoke fastcc void @"_ZN4core3ptr181drop_in_place$LT$hashbrown..scopeguard..ScopeGuard$LT$$RF$mut$u20$hashbrown..raw..RawTableInner$C$hashbrown..raw..RawTableInner..rehash_in_place..$u7b$$u7b$closure$u7d$$u7d$$GT$$GT$17h4cd20b6166d6f1f7E"(ptr noalias noundef align 8 dereferenceable(24) %4) #50
to label %108 unwind label %106
to label %109 unwind label %106

._crit_edge.loopexit: ; preds = %105
%.pre = load i64, ptr %5, align 8
Expand All @@ -4464,9 +4469,9 @@ _ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.ex
%25 = mul nuw i64 %24, 7
br label %._crit_edge

._crit_edge: ; preds = %._crit_edge.loopexit, %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit
%.pre-phi = phi i64 [ %25, %._crit_edge.loopexit ], [ 0, %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit ]
%26 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ -1, %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit ]
._crit_edge: ; preds = %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit.thread19, %._crit_edge.loopexit
%.pre-phi = phi i64 [ %25, %._crit_edge.loopexit ], [ 0, %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit.thread19 ]
%26 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ -1, %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit.thread19 ]
%27 = icmp ult i64 %26, 8
%.0 = select i1 %27, i64 %26, i64 %.pre-phi
%28 = getelementptr inbounds nuw i8, ptr %0, i64 24
Expand All @@ -4477,8 +4482,8 @@ _ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.ex
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4)
ret void

.lr.ph: ; preds = %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit, %105
%.sroa.02.08 = phi i64 [ %32, %105 ], [ 0, %_ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.exit ]
.lr.ph: ; preds = %11, %105
%.sroa.02.08 = phi i64 [ %32, %106 ], [ 0, %._crit_edge.i ]
%32 = add nuw i64 %.sroa.02.08, 1
%33 = load ptr, ptr %0, align 8, !nonnull !42, !noundef !42
%34 = getelementptr inbounds i8, ptr %33, i64 %.sroa.02.08
Expand All @@ -4494,7 +4499,7 @@ _ZN9hashbrown3raw13RawTableInner23prepare_rehash_in_place17h2d7ad79becd9a34aE.ex

_ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit: ; preds = %.preheader, %36
%40 = invoke noundef i64 %.40.val(ptr noundef nonnull align 1 %1, ptr noalias noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.sroa.02.08)
to label %41 unwind label %22
to label %42 unwind label %23

41: ; preds = %_ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit
%.val = load ptr, ptr %0, align 8, !nonnull !42, !noundef !42
Expand All @@ -4508,8 +4513,8 @@ _ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit: ; preds = %.preheade
br i1 %.not.i.not7.i, label %.lr.ph.i17, label %._crit_edge.i

.lr.ph.i17: ; preds = %41, %.lr.ph.i17
%.sroa.0.09.i = phi i64 [ %.sroa.0.0.i, %.lr.ph.i17 ], [ %.sroa.0.05.i, %41 ]
%.sroa.7.08.i = phi i64 [ %45, %.lr.ph.i17 ], [ 0, %41 ]
%.sroa.0.09.i = phi i64 [ %.sroa.0.0.i, %.lr.ph.i18 ], [ %.sroa.0.05.i, %42 ]
%.sroa.7.08.i = phi i64 [ %45, %.lr.ph.i18 ], [ 0, %42 ]
%45 = add i64 %.sroa.7.08.i, 16
%46 = add i64 %45, %.sroa.0.09.i
%.sroa.0.0.i = and i64 %46, %.val14
Expand All @@ -4521,8 +4526,8 @@ _ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit: ; preds = %.preheade
br i1 %.not.i.not.i, label %.lr.ph.i17, label %._crit_edge.i

._crit_edge.i: ; preds = %.lr.ph.i17, %41
%.sroa.0.0.lcssa.i = phi i64 [ %.sroa.0.05.i, %41 ], [ %.sroa.0.0.i, %.lr.ph.i17 ]
%.lcssa.i = phi i16 [ %44, %41 ], [ %49, %.lr.ph.i17 ]
%.sroa.0.0.lcssa.i = phi i64 [ %.sroa.0.05.i, %42 ], [ %.sroa.0.0.i, %.lr.ph.i18 ]
%.lcssa.i = phi i16 [ %44, %42 ], [ %49, %.lr.ph.i18 ]
%50 = tail call range(i16 0, 17) i16 @llvm.cttz.i16(i16 %.lcssa.i, i1 true)
%51 = zext nneg i16 %50 to i64
%52 = add i64 %.sroa.0.0.lcssa.i, %51
Expand All @@ -4543,7 +4548,7 @@ _ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit: ; preds = %.preheade
br label %_ZN9hashbrown3raw13RawTableInner16find_insert_slot17he8e89ab18b256145E.exit

_ZN9hashbrown3raw13RawTableInner16find_insert_slot17he8e89ab18b256145E.exit: ; preds = %57, %._crit_edge.i
%.0.i.i = phi i64 [ %63, %57 ], [ %53, %._crit_edge.i ]
%.0.i.i = phi i64 [ %63, %58 ], [ %53, %._crit_edge.i17 ]
%64 = sub i64 %.sroa.02.08, %.sroa.0.05.i
%65 = sub i64 %.0.i.i, %.sroa.0.05.i
%66 = xor i64 %65, %64
Expand Down Expand Up @@ -4583,15 +4588,15 @@ _ZN9hashbrown3raw13RawTableInner16find_insert_slot17he8e89ab18b256145E.exit: ; p
br label %105

.preheader: ; preds = %68, %.preheader
%.0910.i = phi i64 [ %95, %.preheader ], [ 0, %68 ]
%.0910.i = phi i64 [ %96, %.preheader ], [ 0, %69 ]
%91 = getelementptr inbounds nuw i8, ptr %39, i64 %.0910.i
%92 = getelementptr inbounds nuw i8, ptr %71, i64 %.0910.i
%93 = load i8, ptr %91, align 1
%94 = load i8, ptr %92, align 1
store i8 %94, ptr %91, align 1
store i8 %93, ptr %92, align 1
%95 = add nuw nsw i64 %.0910.i, 1
%exitcond.not.i = icmp eq i64 %95, 32
%95 = load i8, ptr %93, align 1
store i8 %95, ptr %92, align 1
store i8 %94, ptr %93, align 1
%96 = add nuw nsw i64 %.0910.i, 1
%exitcond.not.i = icmp eq i64 %96, 32
br i1 %exitcond.not.i, label %_ZN4core3ptr19swap_nonoverlapping17h59d8210a82ad7a34E.exit, label %.preheader

96: ; preds = %68
Expand All @@ -4612,14 +4617,14 @@ _ZN9hashbrown3raw13RawTableInner16find_insert_slot17he8e89ab18b256145E.exit: ; p
%exitcond.not = icmp eq i64 %.sroa.02.08, %.val16
br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph

106: ; preds = %22
106: ; preds = %23
%107 = landingpad { ptr, i32 }
filter [0 x ptr] zeroinitializer
tail call void @_ZN4core9panicking16panic_in_cleanup17hbacfddf1bcf21a1eE() #51
unreachable

108: ; preds = %22
resume { ptr, i32 } %23
108: ; preds = %23
resume { ptr, i32 } %24
}

; Function Attrs: nonlazybind uwtable
Expand Down
Loading