Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit: PR115305 #1653

Closed
wants to merge 2 commits into from
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
54 changes: 27 additions & 27 deletions bench/abseil-cpp/optimized/time_zone_format.cc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,8 @@ sw.bb172: ; preds = %if.end60
store i8 %89, ptr %incdec.ptr.i41.i, align 2
%div.i4260.i = udiv i32 %spec.select26.i, 36000
%rem1.i4361.lhs.trunc.i = trunc nuw i32 %div.i4260.i to i16
%rem1.i436162.i = urem i16 %rem1.i4361.lhs.trunc.i, 10
%idxprom2.i44.i = zext nneg i16 %rem1.i436162.i to i64
%rem1.i436166.i = urem i16 %rem1.i4361.lhs.trunc.i, 10
%idxprom2.i44.i = zext nneg i16 %rem1.i436166.i to i64
%arrayidx3.i45.i = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i44.i
%90 = load i8, ptr %arrayidx3.i45.i, align 1
store i8 %90, ptr %incdec.ptr4.i46.i, align 1
Expand Down Expand Up @@ -1001,8 +1001,8 @@ if.end219: ; preds = %invoke.cont216, %if
store i8 %109, ptr %incdec.ptr4.i46.i, align 1
%div.i4260.i483 = udiv i32 %spec.select26.i465, 36000
%rem1.i4361.lhs.trunc.i484 = trunc nuw i32 %div.i4260.i483 to i16
%rem1.i436162.i485 = urem i16 %rem1.i4361.lhs.trunc.i484, 10
%idxprom2.i44.i486 = zext nneg i16 %rem1.i436162.i485 to i64
%rem1.i436166.i485 = urem i16 %rem1.i4361.lhs.trunc.i484, 10
%idxprom2.i44.i486 = zext nneg i16 %rem1.i436166.i485 to i64
%arrayidx3.i45.i487 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i44.i486
%110 = load i8, ptr %arrayidx3.i45.i487, align 1
store i8 %110, ptr %incdec.ptr37.i, align 16
Expand Down Expand Up @@ -1084,14 +1084,14 @@ _ZN4absl13time_internal4cctz6detail12_GLOBAL__N_112FormatOffsetEPciPKc.exit: ; p
%rem.i509 = urem i32 %spec.select26.i508, 60
%div.i510 = udiv i32 %spec.select26.i508, 60
%rem1.i511 = urem i32 %div.i510, 60
%rem.i63.lhs.trunc.i = trunc nuw nsw i32 %rem.i509 to i8
%rem.i6364.i = urem i8 %rem.i63.lhs.trunc.i, 10
%idxprom.i.i543 = zext nneg i8 %rem.i6364.i to i64
%rem.i62.lhs.trunc.i = trunc nuw nsw i32 %rem.i509 to i8
%rem.i6263.i = urem i8 %rem.i62.lhs.trunc.i, 10
%idxprom.i.i543 = zext nneg i8 %rem.i6263.i to i64
%arrayidx.i.i544 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom.i.i543
%116 = load i8, ptr %arrayidx.i.i544, align 1
store i8 %116, ptr %incdec.ptr.i454, align 4
%div.i6566.i = udiv i8 %rem.i63.lhs.trunc.i, 10
%idxprom2.i.i = zext nneg i8 %div.i6566.i to i64
%div.i6465.i = udiv i8 %rem.i62.lhs.trunc.i, 10
%idxprom2.i.i = zext nneg i8 %div.i6465.i to i64
%arrayidx3.i.i = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i.i
%117 = load i8, ptr %arrayidx3.i.i, align 1
store i8 %117, ptr %incdec.ptr4.i37.i, align 1
Expand All @@ -1116,8 +1116,8 @@ _ZN4absl13time_internal4cctz6detail12_GLOBAL__N_112FormatOffsetEPciPKc.exit: ; p
store i8 %120, ptr %incdec.ptr.i41.i687, align 2
%div.i4260.i526 = udiv i32 %spec.select26.i508, 36000
%rem1.i4361.lhs.trunc.i527 = trunc nuw i32 %div.i4260.i526 to i16
%rem1.i436162.i528 = urem i16 %rem1.i4361.lhs.trunc.i527, 10
%idxprom2.i44.i529 = zext nneg i16 %rem1.i436162.i528 to i64
%rem1.i436166.i528 = urem i16 %rem1.i4361.lhs.trunc.i527, 10
%idxprom2.i44.i529 = zext nneg i16 %rem1.i436166.i528 to i64
%arrayidx3.i45.i530 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i44.i529
%121 = load i8, ptr %arrayidx3.i45.i530, align 1
store i8 %121, ptr %incdec.ptr4.i46.i693, align 1
Expand Down Expand Up @@ -1186,14 +1186,14 @@ if.end287: ; preds = %invoke.cont284, %if
br i1 %cmp15.i552.not, label %if.end22.i, label %if.end22.i.thread

if.end22.i.thread: ; preds = %if.end287
%rem.i63.lhs.trunc.i587 = trunc nuw nsw i32 %rem.i549 to i8
%rem.i6364.i588 = urem i8 %rem.i63.lhs.trunc.i587, 10
%idxprom.i.i589 = zext nneg i8 %rem.i6364.i588 to i64
%rem.i62.lhs.trunc.i587 = trunc nuw nsw i32 %rem.i549 to i8
%rem.i6263.i588 = urem i8 %rem.i62.lhs.trunc.i587, 10
%idxprom.i.i589 = zext nneg i8 %rem.i6263.i588 to i64
%arrayidx.i.i590 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom.i.i589
%126 = load i8, ptr %arrayidx.i.i590, align 1
store i8 %126, ptr %incdec.ptr.i454, align 4
%div.i6566.i592 = udiv i8 %rem.i63.lhs.trunc.i587, 10
%idxprom2.i.i593 = zext nneg i8 %div.i6566.i592 to i64
%div.i6465.i592 = udiv i8 %rem.i62.lhs.trunc.i587, 10
%idxprom2.i.i593 = zext nneg i8 %div.i6465.i592 to i64
%arrayidx3.i.i594 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i.i593
%127 = load i8, ptr %arrayidx3.i.i594, align 1
store i8 %127, ptr %incdec.ptr4.i37.i, align 1
Expand Down Expand Up @@ -1238,8 +1238,8 @@ _ZN4absl13time_internal4cctz6detail12_GLOBAL__N_112FormatOffsetEPciPKc.exit597:
store i8 %130, ptr %incdec.ptr.i41.i568, align 1
%div.i4260.i569 = udiv i32 %spec.select26.i548, 36000
%rem1.i4361.lhs.trunc.i570 = trunc nuw i32 %div.i4260.i569 to i16
%rem1.i436162.i571 = urem i16 %rem1.i4361.lhs.trunc.i570, 10
%idxprom2.i44.i572 = zext nneg i16 %rem1.i436162.i571 to i64
%rem1.i436166.i571 = urem i16 %rem1.i4361.lhs.trunc.i570, 10
%idxprom2.i44.i572 = zext nneg i16 %rem1.i436166.i571 to i64
%arrayidx3.i45.i573 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i44.i572
%131 = load i8, ptr %arrayidx3.i45.i573, align 1
%incdec.ptr4.i46.i574 = getelementptr inbounds i8, ptr %ep.addr.1.i563, i64 -2
Expand Down Expand Up @@ -1408,8 +1408,8 @@ if.end342: ; preds = %invoke.cont339, %if
store i8 %142, ptr %incdec.ptr4.i46.i, align 1
%div.i4260.i637 = udiv i32 %spec.select26.i614, 36000
%rem1.i4361.lhs.trunc.i638 = trunc nuw i32 %div.i4260.i637 to i16
%rem1.i436162.i639 = urem i16 %rem1.i4361.lhs.trunc.i638, 10
%idxprom2.i44.i640 = zext nneg i16 %rem1.i436162.i639 to i64
%rem1.i436166.i639 = urem i16 %rem1.i4361.lhs.trunc.i638, 10
%idxprom2.i44.i640 = zext nneg i16 %rem1.i436166.i639 to i64
%arrayidx3.i45.i641 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i44.i640
%143 = load i8, ptr %arrayidx3.i45.i641, align 1
store i8 %143, ptr %incdec.ptr37.i, align 16
Expand Down Expand Up @@ -1489,14 +1489,14 @@ _ZN4absl13time_internal4cctz6detail12_GLOBAL__N_112FormatOffsetEPciPKc.exit717:
%rem.i665 = urem i32 %spec.select26.i664, 60
%div.i666 = udiv i32 %spec.select26.i664, 60
%rem1.i667 = urem i32 %div.i666, 60
%rem.i63.lhs.trunc.i707 = trunc nuw nsw i32 %rem.i665 to i8
%rem.i6364.i708 = urem i8 %rem.i63.lhs.trunc.i707, 10
%idxprom.i.i709 = zext nneg i8 %rem.i6364.i708 to i64
%rem.i62.lhs.trunc.i707 = trunc nuw nsw i32 %rem.i665 to i8
%rem.i6263.i708 = urem i8 %rem.i62.lhs.trunc.i707, 10
%idxprom.i.i709 = zext nneg i8 %rem.i6263.i708 to i64
%arrayidx.i.i710 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom.i.i709
%149 = load i8, ptr %arrayidx.i.i710, align 1
store i8 %149, ptr %incdec.ptr.i454, align 4
%div.i6566.i712 = udiv i8 %rem.i63.lhs.trunc.i707, 10
%idxprom2.i.i713 = zext nneg i8 %div.i6566.i712 to i64
%div.i6465.i712 = udiv i8 %rem.i62.lhs.trunc.i707, 10
%idxprom2.i.i713 = zext nneg i8 %div.i6465.i712 to i64
%arrayidx3.i.i714 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i.i713
%150 = load i8, ptr %arrayidx3.i.i714, align 1
store i8 %150, ptr %incdec.ptr4.i37.i, align 1
Expand All @@ -1521,8 +1521,8 @@ _ZN4absl13time_internal4cctz6detail12_GLOBAL__N_112FormatOffsetEPciPKc.exit717:
store i8 %153, ptr %incdec.ptr.i41.i687, align 2
%div.i4260.i688 = udiv i32 %spec.select26.i664, 36000
%rem1.i4361.lhs.trunc.i689 = trunc nuw i32 %div.i4260.i688 to i16
%rem1.i436162.i690 = urem i16 %rem1.i4361.lhs.trunc.i689, 10
%idxprom2.i44.i691 = zext nneg i16 %rem1.i436162.i690 to i64
%rem1.i436166.i690 = urem i16 %rem1.i4361.lhs.trunc.i689, 10
%idxprom2.i44.i691 = zext nneg i16 %rem1.i436166.i690 to i64
%arrayidx3.i45.i692 = getelementptr inbounds [11 x i8], ptr @_ZN4absl13time_internal4cctz6detail12_GLOBAL__N_17kDigitsE, i64 0, i64 %idxprom2.i44.i691
%154 = load i8, ptr %arrayidx3.i45.i692, align 1
store i8 %154, ptr %incdec.ptr4.i46.i693, align 1
Expand Down
4 changes: 2 additions & 2 deletions bench/arrow/optimized/concatenate.cc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2929,7 +2929,7 @@ if.then.i.i.i.i279: ; preds = %if.else.i.i
_ZNKSt6vectorIN5arrow12_GLOBAL__N_15RangeESaIS2_EE12_M_check_lenEmPKc.exit.i.i.i: ; preds = %if.else.i.i
%sub.ptr.div.i.i.i.i.i = ashr exact i64 %sub.ptr.sub.i.i.i.i.i, 4
%.sroa.speculated.i.i.i.i = call i64 @llvm.umax.i64(i64 %sub.ptr.div.i.i.i.i.i, i64 1)
%add.i.i.i.i = add i64 %.sroa.speculated.i.i.i.i, %sub.ptr.div.i.i.i.i.i
%add.i.i.i.i = add nsw i64 %.sroa.speculated.i.i.i.i, %sub.ptr.div.i.i.i.i.i
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flag inference improvement

%cmp7.i.i.i.i = icmp ult i64 %add.i.i.i.i, %sub.ptr.div.i.i.i.i.i
%126 = call i64 @llvm.umin.i64(i64 %add.i.i.i.i, i64 576460752303423487)
%cond.i.i.i.i274 = select i1 %cmp7.i.i.i.i, i64 576460752303423487, i64 %126
Expand Down Expand Up @@ -4066,7 +4066,7 @@ if.then.i.i.i.i686: ; preds = %if.else.i.i654
_ZNKSt6vectorIN5arrow12_GLOBAL__N_15RangeESaIS2_EE12_M_check_lenEmPKc.exit.i.i.i660: ; preds = %if.else.i.i654
%sub.ptr.div.i.i.i.i.i661 = ashr exact i64 %sub.ptr.sub.i.i.i.i.i658, 4
%.sroa.speculated.i.i.i.i662 = call i64 @llvm.umax.i64(i64 %sub.ptr.div.i.i.i.i.i661, i64 1)
%add.i.i.i.i663 = add i64 %.sroa.speculated.i.i.i.i662, %sub.ptr.div.i.i.i.i.i661
%add.i.i.i.i663 = add nsw i64 %.sroa.speculated.i.i.i.i662, %sub.ptr.div.i.i.i.i.i661
%cmp7.i.i.i.i664 = icmp ult i64 %add.i.i.i.i663, %sub.ptr.div.i.i.i.i.i661
%279 = call i64 @llvm.umin.i64(i64 %add.i.i.i.i663, i64 576460752303423487)
%cond.i.i.i.i665 = select i1 %cmp7.i.i.i.i664, i64 576460752303423487, i64 %279
Expand Down
18 changes: 9 additions & 9 deletions bench/cmake/optimized/zstd_compress.c.ll
Original file line number Diff line number Diff line change
Expand Up @@ -11825,13 +11825,13 @@ ZSTD_cwksp_reserve_object.exit191.thread: ; preds = %135
143: ; preds = %ZSTD_cwksp_check_wasteful.exit
%.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 672
%.pre = load ptr, ptr %.phi.trans.insert, align 8
%.phi.trans.insert254 = getelementptr inbounds i8, ptr %0, i64 720
%.pre255 = load i32, ptr %.phi.trans.insert254, align 8
%.pre256 = and i64 %88, -64
%.pre258 = inttoptr i64 %.pre256 to ptr
%144 = icmp ugt i32 %.pre255, 1
%.phi.trans.insert253 = getelementptr inbounds i8, ptr %0, i64 720
%.pre254 = load i32, ptr %.phi.trans.insert253, align 8
%.pre255 = and i64 %88, -64
%.pre257 = inttoptr i64 %.pre255 to ptr
%144 = icmp ugt i32 %.pre254, 1
store ptr %.pre, ptr %92, align 8
store ptr %.pre258, ptr %93, align 8
store ptr %.pre257, ptr %93, align 8
%145 = getelementptr inbounds i8, ptr %0, i64 712
store i8 0, ptr %145, align 8
%146 = getelementptr inbounds i8, ptr %0, i64 720
Expand All @@ -11844,7 +11844,7 @@ ZSTD_cwksp_reserve_object.exit191.thread: ; preds = %135
ZSTD_cwksp_clear.exit: ; preds = %.thread, %143, %147
%148 = phi ptr [ %142, %.thread ], [ %146, %143 ], [ %146, %147 ]
%149 = phi ptr [ %141, %.thread ], [ %145, %143 ], [ %145, %147 ]
%.0164262 = phi i32 [ 1, %.thread ], [ %69, %143 ], [ %69, %147 ]
%.0164261 = phi i32 [ 1, %.thread ], [ %69, %143 ], [ %69, %147 ]
%150 = getelementptr inbounds i8, ptr %0, i64 672
%151 = getelementptr inbounds i8, ptr %0, i64 3448
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %151, ptr noundef nonnull align 4 dereferenceable(28) %16, i64 28, i1 false)
Expand Down Expand Up @@ -11889,7 +11889,7 @@ ZSTD_cwksp_clear.exit: ; preds = %.thread, %143, %147
%174 = getelementptr inbounds i8, ptr %169, i64 5612
store i32 0, ptr %174, align 4
%175 = load i32, ptr %74, align 8
%176 = tail call fastcc i64 @ZSTD_reset_matchState(ptr noundef nonnull %57, ptr noundef nonnull %7, ptr noundef nonnull %16, i32 noundef %175, i32 noundef %4, i32 noundef %.0164262, i32 noundef 1)
%176 = tail call fastcc i64 @ZSTD_reset_matchState(ptr noundef nonnull %57, ptr noundef nonnull %7, ptr noundef nonnull %16, i32 noundef %175, i32 noundef %4, i32 noundef %.0164261, i32 noundef 1)
%177 = icmp ult i64 %176, -119
br i1 %177, label %178, label %ZSTD_cwksp_create.exit

Expand Down Expand Up @@ -12275,7 +12275,7 @@ ZSTD_cwksp_reserve_aligned.exit208: ; preds = %316, %ZSTD_cwksp_in
br label %ZSTD_cwksp_internal_advance_phase.exit.i.i209

ZSTD_cwksp_internal_advance_phase.exit.i.i209: ; preds = %348, %367
%368 = phi i32 [ %349, %348 ], [ 3, %367 ]
%368 = phi i32 [ 3, %367 ], [ %349, %348 ]
%369 = load ptr, ptr %93, align 8
%370 = sub nuw i64 -32, %.176
%371 = getelementptr inbounds i8, ptr %369, i64 %370
Expand Down
8 changes: 4 additions & 4 deletions bench/cpython/optimized/unicodeobject.ll
Original file line number Diff line number Diff line change
Expand Up @@ -26578,11 +26578,11 @@ while.body: ; preds = %GroupGenerator_next
%retval.0.i = zext nneg i8 %groupgen.sroa.2.1 to i64
%cond15 = tail call i64 @llvm.smax.i64(i64 %remaining.0, i64 %min_width.addr.0)
%spec.select = tail call i64 @llvm.smax.i64(i64 %cond15, i64 1)
%cond45 = tail call i64 @llvm.umin.i64(i64 %spec.select, i64 %retval.0.i)
%sub = sub i64 %cond45, %remaining.0
%3 = tail call i64 @llvm.umin.i64(i64 %spec.select, i64 %retval.0.i)
%sub = sub i64 %3, %remaining.0
%cond51 = tail call i64 @llvm.smax.i64(i64 %sub, i64 0)
%cmp57 = icmp slt i64 %remaining.0, 0
%cond56 = tail call i64 @llvm.smin.i64(i64 %remaining.0, i64 %cond45)
%cond56 = tail call i64 @llvm.smin.i64(i64 %remaining.0, i64 %3)
%cond66 = select i1 %cmp57, i64 0, i64 %cond56
%cond71 = select i1 %tobool67.not, i64 0, i64 %thousands_sep.val
%add72 = add i64 %cond71, %count.0
Expand All @@ -26591,7 +26591,7 @@ while.body: ; preds = %GroupGenerator_next
%cond79 = select i1 %tobool67.not, ptr null, ptr %thousands_sep
call fastcc void @InsertThousandsGrouping_fill(ptr noundef %writer, ptr noundef %buffer_pos, ptr noundef %digits, ptr noundef %digits_pos, i64 noundef %cond66, i64 noundef %cond51, ptr noundef %cond79, i64 noundef %thousands_sep.val, ptr noundef %maxchar)
%sub80 = sub i64 %remaining.0, %cond66
%sub81 = sub i64 %min_width.addr.0, %cond45
%sub81 = sub i64 %min_width.addr.0, %3
%cmp82 = icmp slt i64 %sub80, 1
%cmp83 = icmp slt i64 %sub81, 1
%or.cond = select i1 %cmp82, i1 %cmp83, i1 false
Expand Down
Loading