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: PR121958 #1927

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
7 changes: 5 additions & 2 deletions bench/abc/optimized/fretMain.c.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4671,7 +4671,7 @@ define internal fastcc range(i32 -1, 2) i32 @Abc_FlowRetime_VerifyPathLatencies_
%39 = tail call fastcc i32 @Abc_FlowRetime_VerifyPathLatencies_rec(ptr noundef nonnull %23, i32 noundef %38)
%40 = icmp sgt i32 %39, -1
%spec.select68.us = select i1 %40, i32 1, i32 %.140106.us
%41 = select i1 %40, i32 %39, i32 0
%41 = tail call i32 @llvm.smax.i32(i32 %39, i32 0)
%spec.select69.us = or i32 %41, %.2107.us
br label %46

Expand Down Expand Up @@ -4740,7 +4740,7 @@ define internal fastcc range(i32 -1, 2) i32 @Abc_FlowRetime_VerifyPathLatencies_
%66 = tail call fastcc i32 @Abc_FlowRetime_VerifyPathLatencies_rec(ptr noundef nonnull %56, i32 noundef 1)
%67 = icmp sgt i32 %66, -1
%spec.select68 = select i1 %67, i32 1, i32 %.140106
%68 = select i1 %67, i32 %66, i32 0
%68 = tail call i32 @llvm.smax.i32(i32 %66, i32 0)
%spec.select69 = or i32 %68, %.2107
br label %69

Expand Down Expand Up @@ -4935,6 +4935,9 @@ declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #12
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #14

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #14

attributes #0 = { nounwind uwtable "frame-pointer"="all" "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 nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "frame-pointer"="all" "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 = { nofree nounwind "frame-pointer"="all" "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" }
Expand Down
146 changes: 78 additions & 68 deletions bench/clamav/optimized/regex_pcre.c.ll

Large diffs are not rendered by default.

229 changes: 115 additions & 114 deletions bench/cpython/optimized/_cursesmodule.ll

Large diffs are not rendered by default.

379 changes: 189 additions & 190 deletions bench/cpython/optimized/dtoa.ll

Large diffs are not rendered by default.

68 changes: 28 additions & 40 deletions bench/cpython/optimized/traceback.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2915,15 +2915,16 @@ if.then7: ; preds = %if.end
%5 = and i32 %bf.load, 64
%tobool12.not = icmp eq i32 %5, 0
%cmp2181 = icmp slt i64 %3, 501
%.82 = tail call i64 @llvm.smin.i64(i64 %3, i64 500)
br i1 %tobool12.not, label %if.end20.thread, label %if.end20.thread87

if.end20.thread87: ; preds = %if.then7
%add.ptr = getelementptr i8, ptr %text, i64 40
br i1 %cmp2181, label %for.cond.preheader, label %for.body.preheader
br label %for.cond.preheader

if.end20.thread: ; preds = %if.then7
%add.ptr14 = getelementptr i8, ptr %text, i64 56
br i1 %cmp2181, label %if.end42, label %for.body46.lr.ph
br label %if.end42

if.else16: ; preds = %if.end
%data17 = getelementptr inbounds nuw i8, ptr %text, i64 56
Expand All @@ -2935,53 +2936,41 @@ if.end20: ; preds = %if.else16
%.pre = and i32 %bf.load, 64
%7 = icmp eq i32 %.pre, 0
%cmp21 = icmp slt i64 %3, 501
%. = select i1 %cmp21, i64 %3, i64 500
%. = tail call i64 @llvm.smin.i64(i64 %3, i64 500)
br i1 %7, label %if.end42, label %for.cond.preheader

for.cond.preheader: ; preds = %if.end20.thread87, %if.end20
%.94 = phi i64 [ %., %if.end20 ], [ %3, %if.end20.thread87 ]
%cmp2193 = phi i1 [ %cmp21, %if.end20 ], [ true, %if.end20.thread87 ]
%data.092 = phi ptr [ %6, %if.end20 ], [ %add.ptr, %if.end20.thread87 ]
%cmp31.not74 = icmp sgt i64 %.94, 0
br i1 %cmp31.not74, label %for.body.preheader, label %if.then39

for.body.preheader: ; preds = %if.end20.thread87, %for.cond.preheader
%data.092103 = phi ptr [ %data.092, %for.cond.preheader ], [ %add.ptr, %if.end20.thread87 ]
%cmp2193101 = phi i1 [ %cmp2193, %for.cond.preheader ], [ false, %if.end20.thread87 ]
%.94100 = phi i64 [ %.94, %for.cond.preheader ], [ 500, %if.end20.thread87 ]
br label %for.body
%.94 = phi i64 [ %.82, %if.end20.thread87 ], [ %., %if.end20 ]
%cmp2193 = phi i1 [ %cmp2181, %if.end20.thread87 ], [ %cmp21, %if.end20 ]
%data.092 = phi ptr [ %add.ptr, %if.end20.thread87 ], [ %6, %if.end20 ]
%cmp31.not74 = icmp sgt i64 %3, 0
br i1 %cmp31.not74, label %for.body, label %if.then39

for.cond: ; preds = %for.body
%inc = add nuw nsw i64 %i.075, 1
%exitcond.not = icmp eq i64 %inc, %.94100
%exitcond.not = icmp eq i64 %inc, %.94
br i1 %exitcond.not, label %if.then39, label %for.body, !llvm.loop !15

for.body: ; preds = %for.body.preheader, %for.cond
%i.075 = phi i64 [ %inc, %for.cond ], [ 0, %for.body.preheader ]
%arrayidx = getelementptr i8, ptr %data.092103, i64 %i.075
for.body: ; preds = %for.cond.preheader, %for.cond
%i.075 = phi i64 [ %inc, %for.cond ], [ 0, %for.cond.preheader ]
%arrayidx = getelementptr i8, ptr %data.092, i64 %i.075
%8 = load i8, ptr %arrayidx, align 1
%9 = add i8 %8, -32
%or.cond = icmp ult i8 %9, 95
br i1 %or.cond, label %for.cond, label %for.body46.lr.ph
br i1 %or.cond, label %for.cond, label %if.end42

if.then39: ; preds = %for.cond, %for.cond.preheader
%data.092104 = phi ptr [ %data.092, %for.cond.preheader ], [ %data.092103, %for.cond ]
%cmp2193102 = phi i1 [ %cmp2193, %for.cond.preheader ], [ %cmp2193101, %for.cond ]
%.9499 = phi i64 [ %.94, %for.cond.preheader ], [ %.94100, %for.cond ]
%call40 = tail call i64 @_Py_write_noraise(i32 noundef %fd, ptr noundef %data.092104, i64 noundef %.9499) #10
br i1 %cmp2193102, label %if.end80, label %if.then78

if.end42: ; preds = %if.end20.thread, %if.end20
%.86 = phi i64 [ %., %if.end20 ], [ %3, %if.end20.thread ]
%cmp2185 = phi i1 [ %cmp21, %if.end20 ], [ true, %if.end20.thread ]
%data.083 = phi ptr [ %6, %if.end20 ], [ %add.ptr14, %if.end20.thread ]
%cmp4476 = icmp sgt i64 %.86, 0
%call40 = tail call i64 @_Py_write_noraise(i32 noundef %fd, ptr noundef %data.092, i64 noundef %.94) #10
br i1 %cmp2193, label %if.end80, label %if.then78

if.end42: ; preds = %for.body, %if.end20.thread, %if.end20
%.86 = phi i64 [ %.82, %if.end20.thread ], [ %., %if.end20 ], [ %.94, %for.body ]
%cmp2185 = phi i1 [ %cmp2181, %if.end20.thread ], [ %cmp21, %if.end20 ], [ %cmp2193, %for.body ]
%data.083 = phi ptr [ %add.ptr14, %if.end20.thread ], [ %6, %if.end20 ], [ %data.092, %for.body ]
%cmp4476 = icmp sgt i64 %3, 0
br i1 %cmp4476, label %for.body46.lr.ph, label %done

for.body46.lr.ph: ; preds = %for.body, %if.end20.thread, %if.end42
%data.083112 = phi ptr [ %data.083, %if.end42 ], [ %add.ptr14, %if.end20.thread ], [ %data.092103, %for.body ]
%cmp2185111 = phi i1 [ %cmp2185, %if.end42 ], [ false, %if.end20.thread ], [ %cmp2193101, %for.body ]
%.86110 = phi i64 [ %.86, %if.end42 ], [ 500, %if.end20.thread ], [ %.94100, %for.body ]
for.body46.lr.ph: ; preds = %if.end42
%arrayidx.i59 = getelementptr inbounds nuw i8, ptr %buffer.i58, i64 16
%sub.ptr.lhs.cast.i60 = ptrtoint ptr %arrayidx.i59 to i64
%arrayidx.i43 = getelementptr inbounds nuw i8, ptr %buffer.i42, i64 16
Expand All @@ -2998,19 +2987,19 @@ for.body46: ; preds = %for.body46.lr.ph, %
]

if.then.i: ; preds = %for.body46
%arrayidx.i = getelementptr i8, ptr %data.083112, i64 %i.177
%arrayidx.i = getelementptr i8, ptr %data.083, i64 %i.177
%10 = load i8, ptr %arrayidx.i, align 1
%conv.i39 = zext i8 %10 to i32
br label %PyUnicode_READ.exit

if.then3.i: ; preds = %for.body46
%arrayidx4.i = getelementptr i16, ptr %data.083112, i64 %i.177
%arrayidx4.i = getelementptr i16, ptr %data.083, i64 %i.177
%11 = load i16, ptr %arrayidx4.i, align 2
%conv5.i = zext i16 %11 to i32
br label %PyUnicode_READ.exit

if.end6.i: ; preds = %for.body46
%arrayidx7.i = getelementptr i32, ptr %data.083112, i64 %i.177
%arrayidx7.i = getelementptr i32, ptr %data.083, i64 %i.177
%12 = load i32, ptr %arrayidx7.i, align 4
br label %PyUnicode_READ.exit

Expand Down Expand Up @@ -3121,12 +3110,11 @@ _Py_DumpHexadecimal.exit73: ; preds = %do.body.i61

for.inc74: ; preds = %if.then53, %_Py_DumpHexadecimal.exit57, %_Py_DumpHexadecimal.exit73, %_Py_DumpHexadecimal.exit
%inc75 = add nuw nsw i64 %i.177, 1
%exitcond78.not = icmp eq i64 %inc75, %.86110
%exitcond78.not = icmp eq i64 %inc75, %.86
br i1 %exitcond78.not, label %done, label %for.body46, !llvm.loop !16

done: ; preds = %for.inc74, %if.end42
%cmp2184 = phi i1 [ %cmp2185, %if.end42 ], [ %cmp2185111, %for.inc74 ]
br i1 %cmp2184, label %if.end80, label %if.then78
br i1 %cmp2185, label %if.end80, label %if.then78

if.then78: ; preds = %if.then39, %done
%call79 = call i64 @_Py_write_noraise(i32 noundef %fd, ptr noundef nonnull @.str.7, i64 noundef 3) #10
Expand Down
31 changes: 14 additions & 17 deletions bench/eastl/optimized/EASprintfOrdered.cpp.ll
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ sw.bb.i: ; preds = %if.then63.i, %if.th
%add.ptr73.i = getelementptr inbounds nuw i8, ptr %p.0.i, i64 1
%mpEnd76.i = getelementptr inbounds nuw i8, ptr %arrayidx65.i, i64 8
store ptr %add.ptr73.i, ptr %mpEnd76.i, align 8, !noalias !8
%cmp80.not.i = icmp eq i32 %nFormatLength.0.i, 15
%cond.i = select i1 %cmp80.not.i, i32 15, i32 %inc67.i
%cond.i = tail call i32 @llvm.smin.i32(i32 %inc67.i, i32 15)
%idxprom81.i = sext i32 %cond.i to i64
%arrayidx82.i = getelementptr inbounds [16 x i8], ptr %mFormat66.i, i64 0, i64 %idxprom81.i
store i8 0, ptr %arrayidx82.i, align 1, !noalias !8
Expand Down Expand Up @@ -1388,8 +1387,7 @@ sw.bb.i: ; preds = %if.then63.i, %if.th
%add.ptr73.i = getelementptr inbounds nuw i8, ptr %p.0.i, i64 2
%mpEnd76.i = getelementptr inbounds nuw i8, ptr %arrayidx65.i, i64 8
store ptr %add.ptr73.i, ptr %mpEnd76.i, align 8, !noalias !37
%cmp80.not.i = icmp eq i32 %nFormatLength.0.i, 15
%cond.i = select i1 %cmp80.not.i, i32 15, i32 %inc67.i
%cond.i = tail call i32 @llvm.smin.i32(i32 %inc67.i, i32 15)
%idxprom81.i = sext i32 %cond.i to i64
%arrayidx82.i = getelementptr inbounds [16 x i16], ptr %mFormat66.i, i64 0, i64 %idxprom81.i
store i16 0, ptr %arrayidx82.i, align 2, !noalias !37
Expand Down Expand Up @@ -2586,8 +2584,7 @@ sw.bb.i: ; preds = %if.then58.i, %if.th
%add.ptr67.i = getelementptr inbounds nuw i8, ptr %p.0.i, i64 4
%mpEnd70.i = getelementptr inbounds nuw i8, ptr %arrayidx60.i, i64 8
store ptr %add.ptr67.i, ptr %mpEnd70.i, align 8, !noalias !65
%cmp74.not.i = icmp eq i32 %nFormatLength.0.i, 15
%cond.i = select i1 %cmp74.not.i, i32 15, i32 %inc62.i
%cond.i = tail call i32 @llvm.smin.i32(i32 %inc62.i, i32 15)
%idxprom75.i = sext i32 %cond.i to i64
%arrayidx76.i = getelementptr inbounds [16 x i32], ptr %mFormat61.i, i64 0, i64 %idxprom75.i
store i32 0, ptr %arrayidx76.i, align 4, !noalias !65
Expand Down Expand Up @@ -3671,30 +3668,30 @@ declare noundef i32 @_ZN2EA4StdC12SprintfLocal11VprintfCoreEPFiPKDimPvNS0_18Writ
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.va_start.p0(ptr) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #5
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
declare void @llvm.experimental.noalias.scope.decl(metadata) #6
declare void @llvm.experimental.noalias.scope.decl(metadata) #7

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #7
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #8

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #8
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #8

attributes #0 = { mustprogress uwtable "frame-pointer"="all" "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 = { "frame-pointer"="all" "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 nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) }
attributes #7 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) }
attributes #8 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }

!llvm.module.flags = !{!0, !1, !2, !3, !4}

Expand Down
6 changes: 3 additions & 3 deletions bench/eastl/optimized/eathread.cpp.ll
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ declare i32 @pthread_getschedparam(i64 noundef, ptr noundef, ptr noundef) local_
define dso_local noundef zeroext i1 @_ZN2EA6Thread17SetThreadPriorityEi(i32 noundef %nPriority) local_unnamed_addr #6 {
entry:
%param = alloca %struct.sched_param, align 4
%cmp = icmp slt i32 %nPriority, 1
%.nPriority = select i1 %cmp, i32 0, i32 %nPriority
%. = select i1 %cmp, i32 0, i32 2
%.nPriority = tail call i32 @llvm.smax.i32(i32 %nPriority, i32 0)
%cmp.inv = icmp sgt i32 %nPriority, 0
%. = select i1 %cmp.inv, i32 2, i32 0
store i32 %.nPriority, ptr %param, align 4
%call = tail call i64 @pthread_self() #18
%call2 = call i32 @pthread_setschedparam(i64 noundef %call, i32 noundef %., ptr noundef nonnull %param) #19
Expand Down
13 changes: 8 additions & 5 deletions bench/freetype/optimized/ftcache.c.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2471,7 +2471,7 @@ define i32 @FTC_CMapCache_Lookup(ptr noundef %0, ptr noundef %1, i32 noundef %2,
%6 = alloca %struct.FTC_CMapQueryRec_, align 8
%7 = alloca ptr, align 8
%8 = icmp sgt i32 %2, -1
%spec.select = select i1 %8, i32 %2, i32 0
%spec.select = tail call i32 @llvm.smax.i32(i32 %2, i32 0)
%.not = icmp eq ptr %0, null
br i1 %.not, label %132, label %9

Expand All @@ -2487,10 +2487,10 @@ define i32 @FTC_CMapCache_Lookup(ptr noundef %0, ptr noundef %1, i32 noundef %2,
%15 = xor i64 %13, %14
%16 = mul i32 %spec.select, 211
%17 = zext i32 %16 to i64
%18 = lshr i32 %3, 7
%19 = zext nneg i32 %18 to i64
%20 = add i64 %15, %19
%21 = add i64 %20, %17
%18 = add i64 %15, %17
%19 = lshr i32 %3, 7
%20 = zext nneg i32 %19 to i64
%21 = add i64 %18, %20
%22 = getelementptr inbounds nuw i8, ptr %0, i64 16
%23 = load ptr, ptr %22, align 8
%24 = getelementptr inbounds nuw i8, ptr %0, i64 4
Expand Down Expand Up @@ -5378,6 +5378,9 @@ declare i16 @llvm.abs.i16(i16, i1 immarg) #9
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #9

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #9

attributes #0 = { nounwind uwtable "frame-pointer"="all" "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 "frame-pointer"="all" "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 nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "frame-pointer"="all" "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" }
Expand Down
Loading