Skip to content
Open
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
19 changes: 9 additions & 10 deletions bench/coreutils-rs/optimized/1rc3oz70a7y5cjew.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2095,10 +2095,9 @@ define hidden { ptr, ptr } @_ZN7uu_tail6follow5watch8Observer9add_stdin17h601359
%9 = alloca { { { { { i64, ptr, {} }, i64 } } } }, align 8
%10 = getelementptr inbounds nuw i8, ptr %0, i64 142
%11 = load i8, ptr %10, align 2, !range !253, !noundef !4
%12 = icmp eq i8 %11, 2
%13 = trunc nuw i8 %11 to i1
%.0.not = select i1 %12, i1 true, i1 %13
br i1 %.0.not, label %14, label %36
%.off = add nsw i8 %11, -1
%switch = icmp ult i8 %.off, 2
br i1 %switch, label %12, label %34

14: ; preds = %6
%15 = icmp eq ptr %3, null
Expand All @@ -2108,8 +2107,8 @@ define hidden { ptr, ptr } @_ZN7uu_tail6follow5watch8Observer9add_stdin17h601359
%17 = icmp ne ptr %4, null
tail call void @llvm.assume(i1 %17)
%18 = load ptr, ptr %4, align 8, !invariant.load !4, !nonnull !4
invoke void %18(ptr noundef nonnull align 1 %3)
to label %28 unwind label %19
invoke void %16(ptr noundef nonnull align 1 %3)
to label %26 unwind label %19

19: ; preds = %16
%20 = landingpad { ptr, i32 }
Expand Down Expand Up @@ -2142,18 +2141,18 @@ define hidden { ptr, ptr } @_ZN7uu_tail6follow5watch8Observer9add_stdin17h601359
br label %"_ZN4core3ptr98drop_in_place$LT$core..option..Option$LT$alloc..boxed..Box$LT$dyn$u20$std..io..BufRead$GT$$GT$$GT$17h90a0454564d37616E.exit"

common.resume: ; preds = %60, %45, %19, %27
%common.resume.op = phi { ptr, i32 } [ %20, %27 ], [ %20, %19 ], [ %61, %60 ], [ %46, %45 ]
%common.resume.op = phi { ptr, i32 } [ %20, %25 ], [ %20, %17 ], [ %61, %58 ], [ %46, %43 ]
resume { ptr, i32 } %common.resume.op

36: ; preds = %6
call void @llvm.lifetime.start.p0(ptr nonnull %9)
call void @llvm.lifetime.start.p0(ptr nonnull %8)
invoke void @_ZN3std3sys6os_str5bytes5Slice8to_owned17had945b6c4cd6e040E(ptr noalias noundef nonnull sret({ { { i64, ptr, {} }, i64 } }) align 8 captures(none) dereferenceable(24) %8, ptr noalias noundef nonnull readonly align 1 @anon.a452aa5e26af69a11c0889dfc0019aa2.43, i64 noundef 10)
to label %39 unwind label %60
to label %37 unwind label %60

"_ZN4core3ptr98drop_in_place$LT$core..option..Option$LT$alloc..boxed..Box$LT$dyn$u20$std..io..BufRead$GT$$GT$$GT$17h90a0454564d37616E.exit": ; preds = %35, %28, %14, %55
%.sroa.3.0 = phi ptr [ %56, %55 ], [ undef, %14 ], [ undef, %28 ], [ undef, %35 ]
%.sroa.0.0 = phi ptr [ %57, %55 ], [ null, %14 ], [ null, %28 ], [ null, %35 ]
%.sroa.3.0 = phi ptr [ %56, %53 ], [ undef, %12 ], [ undef, %26 ], [ undef, %33 ]
%.sroa.0.0 = phi ptr [ %57, %53 ], [ null, %12 ], [ null, %26 ], [ null, %33 ]
%37 = insertvalue { ptr, ptr } poison, ptr %.sroa.0.0, 0
%38 = insertvalue { ptr, ptr } %37, ptr %.sroa.3.0, 1
ret { ptr, ptr } %38
Expand Down
47 changes: 23 additions & 24 deletions bench/coreutils-rs/optimized/26a2uyrtdxle93un.ll
Original file line number Diff line number Diff line change
Expand Up @@ -6451,7 +6451,7 @@ define void @_ZN10uu_hashsum15handle_captures17hbd8bbb1231077497E(ptr noalias no
38: ; preds = %.body, %39
%.pn = phi { ptr, i32 } [ %eh.lpad-body, %.body ], [ %40, %39 ]
invoke void @"_ZN4core3ptr42drop_in_place$LT$alloc..string..String$GT$17h103cfbcc074096acE"(ptr noalias noundef nonnull align 8 dereferenceable(24) %16) #14
to label %177 unwind label %175
to label %175 unwind label %175

39: ; preds = %29
%40 = landingpad { ptr, i32 }
Expand Down Expand Up @@ -6633,9 +6633,9 @@ define void @_ZN10uu_hashsum15handle_captures17hbd8bbb1231077497E(ptr noalias no
unreachable

97: ; preds = %143, %98
%.pn105 = phi { ptr, i32 } [ %99, %98 ], [ %144, %143 ]
%.pn105 = phi { ptr, i32 } [ %99, %98 ], [ %144, %141 ]
invoke void @"_ZN4core3ptr42drop_in_place$LT$alloc..string..String$GT$17h103cfbcc074096acE"(ptr noalias noundef nonnull align 8 dereferenceable(24) %14) #14
to label %177 unwind label %175
to label %175 unwind label %175

98: ; preds = %124, %.thread143, %106, %"_ZN4core3str6traits108_$LT$impl$u20$core..slice..index..SliceIndex$LT$str$GT$$u20$for$u20$core..ops..range..Range$LT$usize$GT$$GT$3get17h1c9a4707155b2780E.exit"
%99 = landingpad { ptr, i32 }
Expand Down Expand Up @@ -6739,18 +6739,17 @@ define void @_ZN10uu_hashsum15handle_captures17hbd8bbb1231077497E(ptr noalias no
%.sroa.5.0..sroa_idx10.i = getelementptr inbounds nuw i8, ptr %13, i64 16
store i64 %125, ptr %.sroa.5.0..sroa_idx10.i, align 8, !alias.scope !1529, !noalias !1537
%139 = load i8, ptr %4, align 1, !range !1483, !noundef !5
%140 = icmp eq i8 %139, 2
%141 = trunc nuw i8 %139 to i1
%.0.not = select i1 %140, i1 true, i1 %141
br i1 %.0.not, label %"_ZN73_$LT$$u5b$A$u5d$$u20$as$u20$core..slice..cmp..SlicePartialEq$LT$B$GT$$GT$5equal17h4e0bf090b4b6f4caE.exit", label %142
%.off = add nsw i8 %139, -1
%switch = icmp ult i8 %.off, 2
br i1 %switch, label %"_ZN73_$LT$$u5b$A$u5d$$u20$as$u20$core..slice..cmp..SlicePartialEq$LT$B$GT$$GT$5equal17h4e0bf090b4b6f4caE.exit", label %140

142: ; preds = %.loopexit
call void @llvm.lifetime.start.p0(ptr nonnull %9)
invoke void @_ZN14regex_automata4util8captures8Captures17get_group_by_name17hc52cd55fc5916603E(ptr noalias noundef nonnull sret({ i64, [2 x i64] }) align 8 captures(none) dereferenceable(24) %9, ptr noalias noundef nonnull readonly align 8 dereferenceable(40) %19, ptr noalias noundef nonnull readonly align 1 @anon.30a06547abaf6ed0f9caf43711ac6463.93, i64 noundef 6)
to label %145 unwind label %143
to label %143 unwind label %143

"_ZN73_$LT$$u5b$A$u5d$$u20$as$u20$core..slice..cmp..SlicePartialEq$LT$B$GT$$GT$5equal17h4e0bf090b4b6f4caE.exit": ; preds = %168, %170, %.loopexit
%.098 = phi i8 [ 0, %.loopexit ], [ %173, %170 ], [ 0, %168 ]
"_ZN73_$LT$$u5b$A$u5d$$u20$as$u20$core..slice..cmp..SlicePartialEq$LT$B$GT$$GT$5equal17h4e0bf090b4b6f4caE.exit": ; preds = %.loopexit, %166, %168
%.098 = phi i8 [ 0, %.loopexit ], [ %173, %168 ], [ 0, %166 ]
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.014, ptr noundef nonnull align 8 dereferenceable(24) %14, i64 24, i1 false)
%.sroa.014.24..sroa_idx = getelementptr inbounds nuw i8, ptr %.sroa.014, i64 24
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.014.24..sroa_idx, ptr noundef nonnull align 8 dereferenceable(24) %13, i64 24, i1 false)
Expand All @@ -6772,9 +6771,9 @@ define void @_ZN10uu_hashsum15handle_captures17hbd8bbb1231077497E(ptr noalias no
%146 = load i64, ptr %9, align 8, !range !1484, !noundef !5
%trunc104 = trunc nuw i64 %146 to i1
%147 = getelementptr inbounds nuw i8, ptr %9, i64 8
%146 = load i64, ptr %145, align 8
%147 = getelementptr inbounds nuw i8, ptr %9, i64 16
%148 = load i64, ptr %147, align 8
%149 = getelementptr inbounds nuw i8, ptr %9, i64 16
%150 = load i64, ptr %149, align 8
call void @llvm.lifetime.end.p0(ptr nonnull %9)
br i1 %trunc104, label %152, label %151

Expand All @@ -6783,56 +6782,56 @@ define void @_ZN10uu_hashsum15handle_captures17hbd8bbb1231077497E(ptr noalias no
to label %123 unwind label %143

152: ; preds = %145
%.not.i127 = icmp ugt i64 %148, %150
%.not.i127 = icmp ugt i64 %146, %148
br i1 %.not.i127, label %.thread147, label %153

153: ; preds = %152
%154 = icmp eq i64 %148, 0
%154 = icmp eq i64 %146, 0
br i1 %154, label %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.thread.i131", label %155

155: ; preds = %153
%.not.i.i128 = icmp ult i64 %148, %23
%.not.i.i128 = icmp ult i64 %146, %23
br i1 %.not.i.i128, label %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.i135", label %156

156: ; preds = %155
%157 = icmp eq i64 %148, %23
%157 = icmp eq i64 %146, %23
br i1 %157, label %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.thread.i131", label %.thread147

"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.i135": ; preds = %155
%158 = getelementptr inbounds i8, ptr %21, i64 %148
%158 = getelementptr inbounds i8, ptr %21, i64 %146
%159 = load i8, ptr %158, align 1, !alias.scope !1538, !noundef !5
%160 = icmp sgt i8 %159, -65
br i1 %160, label %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.thread.i131", label %.thread147

"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.thread.i131": ; preds = %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.i135", %156, %153
%161 = icmp eq i64 %150, 0
%161 = icmp eq i64 %148, 0
br i1 %161, label %168, label %162

162: ; preds = %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.thread.i131"
%.not.i5.i132 = icmp ult i64 %150, %23
%.not.i5.i132 = icmp ult i64 %148, %23
br i1 %.not.i5.i132, label %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit7.i134", label %163

163: ; preds = %162
%164 = icmp eq i64 %150, %23
%164 = icmp eq i64 %148, %23
br i1 %164, label %168, label %.thread147

"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit7.i134": ; preds = %162
%165 = getelementptr inbounds i8, ptr %21, i64 %150
%165 = getelementptr inbounds i8, ptr %21, i64 %148
%166 = load i8, ptr %165, align 1, !alias.scope !1543, !noundef !5
%167 = icmp sgt i8 %166, -65
br i1 %167, label %168, label %.thread147

168: ; preds = %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.thread.i131", %163, %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit7.i134"
%169 = sub i64 %150, %148
%169 = sub i64 %148, %146
%.not.i137 = icmp eq i64 %169, 1
br i1 %.not.i137, label %170, label %"_ZN73_$LT$$u5b$A$u5d$$u20$as$u20$core..slice..cmp..SlicePartialEq$LT$B$GT$$GT$5equal17h4e0bf090b4b6f4caE.exit"

.thread147: ; preds = %163, %156, %152, %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit.i135", %"_ZN4core3str21_$LT$impl$u20$str$GT$16is_char_boundary17ha03ab45daa8167cbE.exit7.i134"
invoke void @_ZN4core3str16slice_error_fail17he2ff12236fb0c056E(ptr noalias noundef nonnull readonly align 1 %21, i64 noundef %23, i64 noundef %148, i64 noundef %150, ptr noalias noundef readonly align 8 dereferenceable(24) @anon.30a06547abaf6ed0f9caf43711ac6463.148) #16
invoke void @_ZN4core3str16slice_error_fail17he2ff12236fb0c056E(ptr noalias noundef nonnull readonly align 1 %21, i64 noundef %23, i64 noundef %146, i64 noundef %148, ptr noalias noundef readonly align 8 dereferenceable(24) @anon.30a06547abaf6ed0f9caf43711ac6463.148) #16
to label %123 unwind label %143

170: ; preds = %168
%171 = getelementptr inbounds i8, ptr %21, i64 %148
%171 = getelementptr inbounds i8, ptr %21, i64 %146
%lhsc = load i8, ptr %171, align 1
%172 = icmp eq i8 %lhsc, 42
%173 = zext i1 %172 to i8
Expand Down
Loading