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: test PR76553 #66

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
1,403 changes: 696 additions & 707 deletions bench/assimp/optimized/unzip.c.ll

Large diffs are not rendered by default.

49 changes: 24 additions & 25 deletions bench/cpython/optimized/assemble.ll
Original file line number Diff line number Diff line change
Expand Up @@ -465,43 +465,43 @@ for.inc.i24: ; preds = %while.body.preheade
br i1 %cmp1.i26, label %for.body.i18, label %for.end.i, !llvm.loop !11

for.end.i: ; preds = %for.inc.i24
%cmp53.i.i = icmp sgt i32 %52, 0
br i1 %cmp53.i.i, label %for.body.i.i, label %if.end9.thread.i
%cmp51.i.i = icmp sgt i32 %52, 0
br i1 %cmp51.i.i, label %for.body.i.i, label %if.end9.thread.i

for.body.i.i: ; preds = %for.end.i, %if.end5.i.i
%.pre64.i.i = phi i32 [ %.pre65.i.i, %if.end5.i.i ], [ %52, %for.end.i ]
%.pre62.i.i = phi i32 [ %.pre63.i.i, %if.end5.i.i ], [ %52, %for.end.i ]
%54 = phi i32 [ %59, %if.end5.i.i ], [ %52, %for.end.i ]
%indvars.iv.i.i = phi i64 [ %indvars.iv.next.i.i, %if.end5.i.i ], [ 0, %for.end.i ]
%size.056.i.i = phi i32 [ %add.i37.i, %if.end5.i.i ], [ 0, %for.end.i ]
%loc.sroa.0.055.i.i = phi i64 [ %loc.sroa.0.1.i.i, %if.end5.i.i ], [ -1, %for.end.i ]
%loc.sroa.5.054.i.i = phi i64 [ %loc.sroa.5.1.i.i, %if.end5.i.i ], [ -1, %for.end.i ]
%size.054.i.i = phi i32 [ %add.i37.i, %if.end5.i.i ], [ 0, %for.end.i ]
%loc.sroa.0.053.i.i = phi i64 [ %loc.sroa.0.1.i.i, %if.end5.i.i ], [ -1, %for.end.i ]
%loc.sroa.5.052.i.i = phi i64 [ %loc.sroa.5.1.i.i, %if.end5.i.i ], [ -1, %for.end.i ]
%55 = load ptr, ptr %instrs, align 8
%arrayidx.i.i27 = getelementptr %struct._PyCompile_Instruction, ptr %55, i64 %indvars.iv.i.i
%i_loc.i.i = getelementptr %struct._PyCompile_Instruction, ptr %55, i64 %indvars.iv.i.i, i32 2
%56 = load i64, ptr %i_loc.i.i, align 4
%57 = getelementptr inbounds { i64, i64 }, ptr %i_loc.i.i, i64 0, i32 1
%58 = load i64, ptr %57, align 4
%a.sroa.3.8.extract.trunc.i.i.i = trunc i64 %loc.sroa.5.054.i.i to i32
%a.sroa.3.8.extract.trunc.i.i.i = trunc i64 %loc.sroa.5.052.i.i to i32
%b.sroa.3.8.extract.trunc.i.i.i = trunc i64 %58 to i32
%or.cond.i.i.i = icmp eq i64 %loc.sroa.0.055.i.i, %56
%or.cond.i.i.i = icmp eq i64 %loc.sroa.0.053.i.i, %56
%cmp6.i.i.i = icmp eq i32 %a.sroa.3.8.extract.trunc.i.i.i, %b.sroa.3.8.extract.trunc.i.i.i
%or.cond1.i.i.i = select i1 %or.cond.i.i.i, i1 %cmp6.i.i.i, i1 false
%cmp8.unshifted.i.i.i = xor i64 %58, %loc.sroa.5.054.i.i
%cmp8.unshifted.i.i.i = xor i64 %58, %loc.sroa.5.052.i.i
%cmp8.i.i.i = icmp ult i64 %cmp8.unshifted.i.i.i, 4294967296
%or.cond.i.i = select i1 %or.cond1.i.i.i, i1 %cmp8.i.i.i, i1 false
br i1 %or.cond.i.i, label %if.end5.i.i, label %if.then.i25.i

if.then.i25.i: ; preds = %for.body.i.i
%cmp.i.i26.i = icmp eq i32 %size.056.i.i, 0
%cmp.i.i26.i = icmp eq i32 %size.054.i.i, 0
br i1 %cmp.i.i26.i, label %if.end5.i.i, label %while.cond.preheader.i.i.i

while.cond.preheader.i.i.i: ; preds = %if.then.i25.i
%cmp18.i.i.i = icmp sgt i32 %size.056.i.i, 8
%cmp18.i.i.i = icmp sgt i32 %size.054.i.i, 8
br i1 %cmp18.i.i.i, label %while.body.i.i.i, label %assemble_emit_location.exit.i.i

while.body.i.i.i: ; preds = %while.cond.preheader.i.i.i, %if.end4.i.i.i
%isize.addr.09.i.i.i = phi i32 [ %sub.i.i40.i, %if.end4.i.i.i ], [ %size.056.i.i, %while.cond.preheader.i.i.i ]
%call.i.i.i = call fastcc i32 @write_location_info_entry(ptr noundef nonnull %a, i64 %loc.sroa.0.055.i.i, i64 %loc.sroa.5.054.i.i, i32 noundef 8), !range !12
%isize.addr.09.i.i.i = phi i32 [ %sub.i.i40.i, %if.end4.i.i.i ], [ %size.054.i.i, %while.cond.preheader.i.i.i ]
%call.i.i.i = call fastcc i32 @write_location_info_entry(ptr noundef nonnull %a, i64 %loc.sroa.0.053.i.i, i64 %loc.sroa.5.052.i.i, i32 noundef 8), !range !12
%cmp2.i.i.i = icmp slt i32 %call.i.i.i, 0
br i1 %cmp2.i.i.i, label %if.end9, label %if.end4.i.i.i

Expand All @@ -511,8 +511,8 @@ if.end4.i.i.i: ; preds = %while.body.i.i.i
br i1 %cmp1.i.i41.i, label %while.body.i.i.i, label %assemble_emit_location.exit.i.i, !llvm.loop !13

assemble_emit_location.exit.i.i: ; preds = %if.end4.i.i.i, %while.cond.preheader.i.i.i
%isize.addr.0.lcssa.i.i.i = phi i32 [ %size.056.i.i, %while.cond.preheader.i.i.i ], [ %sub.i.i40.i, %if.end4.i.i.i ]
%call5.i.i.i = call fastcc i32 @write_location_info_entry(ptr noundef nonnull %a, i64 %loc.sroa.0.055.i.i, i64 %loc.sroa.5.054.i.i, i32 noundef %isize.addr.0.lcssa.i.i.i), !range !12
%isize.addr.0.lcssa.i.i.i = phi i32 [ %size.054.i.i, %while.cond.preheader.i.i.i ], [ %sub.i.i40.i, %if.end4.i.i.i ]
%call5.i.i.i = call fastcc i32 @write_location_info_entry(ptr noundef nonnull %a, i64 %loc.sroa.0.053.i.i, i64 %loc.sroa.5.052.i.i, i32 noundef %isize.addr.0.lcssa.i.i.i), !range !12
%cmp2.i.i = icmp slt i32 %call5.i.i.i, 0
br i1 %cmp2.i.i, label %if.end9, label %assemble_emit_location.exit.if.end_crit_edge.i.i

Expand All @@ -523,11 +523,11 @@ assemble_emit_location.exit.if.end_crit_edge.i.i: ; preds = %assemble_emit_locat
br label %if.end5.i.i

if.end5.i.i: ; preds = %assemble_emit_location.exit.if.end_crit_edge.i.i, %if.then.i25.i, %for.body.i.i
%.pre65.i.i = phi i32 [ %.pre64.i.i, %for.body.i.i ], [ %.pre.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %.pre64.i.i, %if.then.i25.i ]
%59 = phi i32 [ %54, %for.body.i.i ], [ %.pre.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %.pre64.i.i, %if.then.i25.i ]
%loc.sroa.5.1.i.i = phi i64 [ %loc.sroa.5.054.i.i, %for.body.i.i ], [ %loc.sroa.5.0.copyload10.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %58, %if.then.i25.i ]
%loc.sroa.0.1.i.i = phi i64 [ %loc.sroa.0.055.i.i, %for.body.i.i ], [ %loc.sroa.0.0.copyload9.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %56, %if.then.i25.i ]
%size.1.i.i = phi i32 [ %size.056.i.i, %for.body.i.i ], [ 0, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ 0, %if.then.i25.i ]
%.pre63.i.i = phi i32 [ %.pre62.i.i, %for.body.i.i ], [ %.pre.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %.pre62.i.i, %if.then.i25.i ]
%59 = phi i32 [ %54, %for.body.i.i ], [ %.pre.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %.pre62.i.i, %if.then.i25.i ]
%loc.sroa.5.1.i.i = phi i64 [ %loc.sroa.5.052.i.i, %for.body.i.i ], [ %loc.sroa.5.0.copyload10.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %58, %if.then.i25.i ]
%loc.sroa.0.1.i.i = phi i64 [ %loc.sroa.0.053.i.i, %for.body.i.i ], [ %loc.sroa.0.0.copyload9.pre.i.i, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ %56, %if.then.i25.i ]
%size.1.i.i = phi i32 [ %size.054.i.i, %for.body.i.i ], [ 0, %assemble_emit_location.exit.if.end_crit_edge.i.i ], [ 0, %if.then.i25.i ]
%arrayidx.val.i.i = load i32, ptr %arrayidx.i.i27, align 4
%60 = getelementptr i8, ptr %arrayidx.i.i27, i64 4
%arrayidx.val16.i.i = load i32, ptr %60, align 4
Expand Down Expand Up @@ -572,8 +572,7 @@ if.end4.i30.i.i: ; preds = %while.body.i26.i.i
assemble_emit_location.exit33.i.i: ; preds = %if.end4.i30.i.i, %while.cond.preheader.i20.i.i
%isize.addr.0.lcssa.i23.i.i = phi i32 [ %add.i37.i, %while.cond.preheader.i20.i.i ], [ %sub.i31.i.i, %if.end4.i30.i.i ]
%call5.i24.i.i = call fastcc i32 @write_location_info_entry(ptr noundef nonnull %a, i64 %loc.sroa.0.1.i.i, i64 %loc.sroa.5.1.i.i, i32 noundef %isize.addr.0.lcssa.i23.i.i), !range !12
%call5.i24.fr.i.i = freeze i32 %call5.i24.i.i
%cmp8.i39.i = icmp slt i32 %call5.i24.fr.i.i, 0
%cmp8.i39.i = icmp slt i32 %call5.i24.i.i, 0
br i1 %cmp8.i39.i, label %if.end9, label %assemble_emit_location.exit33.i.if.end9_crit_edge.i

assemble_emit_location.exit33.i.if.end9_crit_edge.i: ; preds = %assemble_emit_location.exit33.i.i
Expand All @@ -585,7 +584,7 @@ if.end9.thread.i: ; preds = %for.end.i, %for.con
br label %if.end13.i

if.end9.i: ; preds = %assemble_emit_location.exit33.i.if.end9_crit_edge.i, %for.end.i.i
%63 = phi i32 [ %.pre.i28, %assemble_emit_location.exit33.i.if.end9_crit_edge.i ], [ %.pre65.i.i, %for.end.i.i ]
%63 = phi i32 [ %.pre.i28, %assemble_emit_location.exit33.i.if.end9_crit_edge.i ], [ %.pre63.i.i, %for.end.i.i ]
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %handler.i.i)
store i32 -1, ptr %handler.i.i, align 4
%h_startdepth.i.i = getelementptr inbounds %struct._PyCompile_ExceptHandlerInfo, ptr %handler.i.i, i64 0, i32 1
Expand Down Expand Up @@ -1221,7 +1220,7 @@ declare void @_Py_Dealloc(ptr noundef) local_unnamed_addr #1
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define internal fastcc i32 @write_location_info_entry(ptr noundef %a, i64 %loc.coerce0, i64 %loc.coerce1, i32 noundef %isize) unnamed_addr #0 {
define internal fastcc noundef i32 @write_location_info_entry(ptr noundef %a, i64 %loc.coerce0, i64 %loc.coerce1, i32 noundef %isize) unnamed_addr #0 {
entry:
%loc.sroa.0.0.extract.trunc = trunc i64 %loc.coerce0 to i32
%loc.sroa.9.0.extract.shift = lshr i64 %loc.coerce0, 32
Expand Down Expand Up @@ -1575,7 +1574,7 @@ return: ; preds = %if.then, %write_loc
}

; Function Attrs: nounwind uwtable
define internal fastcc i32 @assemble_emit_exception_table_entry(ptr noundef %a, i32 noundef %start, i32 noundef %end, i32 noundef %handler_offset, ptr nocapture noundef readonly %handler) unnamed_addr #0 {
define internal fastcc noundef i32 @assemble_emit_exception_table_entry(ptr noundef %a, i32 noundef %start, i32 noundef %end, i32 noundef %handler_offset, ptr nocapture noundef readonly %handler) unnamed_addr #0 {
entry:
%a_except_table = getelementptr inbounds %struct.assembler, ptr %a, i64 0, i32 2
%0 = load ptr, ptr %a_except_table, align 8
Expand Down
28 changes: 14 additions & 14 deletions bench/cpython/optimized/ceval.ll
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ for.end: ; preds = %for.body, %entry
}

; Function Attrs: nounwind uwtable
define dso_local i32 @_Py_CheckRecursiveCall(ptr noundef %tstate, ptr noundef %where) local_unnamed_addr #2 {
define dso_local noundef i32 @_Py_CheckRecursiveCall(ptr noundef %tstate, ptr noundef %where) local_unnamed_addr #2 {
entry:
%recursion_headroom = getelementptr inbounds %struct._ts, ptr %tstate, i64 0, i32 9
%0 = load i32, ptr %recursion_headroom, align 8
Expand Down Expand Up @@ -2327,7 +2327,7 @@ _PyEval_EvalFrame.exit: ; preds = %if.then.i, %if.end.
}

; Function Attrs: nounwind uwtable
define hidden i32 @_Py_CheckRecursiveCallPy(ptr noundef %tstate) local_unnamed_addr #2 {
define hidden noundef i32 @_Py_CheckRecursiveCallPy(ptr noundef %tstate) local_unnamed_addr #2 {
entry:
%recursion_headroom = getelementptr inbounds %struct._ts, ptr %tstate, i64 0, i32 9
%0 = load i32, ptr %recursion_headroom, align 8
Expand Down Expand Up @@ -29987,7 +29987,7 @@ declare ptr @PyLong_FromSsize_t(i64 noundef) local_unnamed_addr #4
declare ptr @PyObject_Str(ptr noundef) #4

; Function Attrs: nounwind uwtable
define hidden i32 @_PyEval_CheckExceptStarTypeValid(ptr noundef %tstate, ptr noundef %right) local_unnamed_addr #2 {
define hidden noundef i32 @_PyEval_CheckExceptStarTypeValid(ptr noundef %tstate, ptr noundef %right) local_unnamed_addr #2 {
entry:
%0 = getelementptr i8, ptr %right, i64 8
%right.val9.i = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -30088,7 +30088,7 @@ return: ; preds = %for.body, %for.cond
}

; Function Attrs: nounwind uwtable
define hidden i32 @_PyEval_ExceptionGroupMatch(ptr noundef %exc_value, ptr noundef %match_type, ptr nocapture noundef writeonly %match, ptr nocapture noundef writeonly %rest) local_unnamed_addr #2 {
define hidden noundef i32 @_PyEval_ExceptionGroupMatch(ptr noundef %exc_value, ptr noundef %match_type, ptr nocapture noundef writeonly %match, ptr nocapture noundef writeonly %rest) local_unnamed_addr #2 {
entry:
%cmp = icmp eq ptr %exc_value, @_Py_NoneStruct
br i1 %cmp, label %if.then, label %if.end
Expand Down Expand Up @@ -30283,7 +30283,7 @@ return: ; preds = %_Py_NewRef.exit54,
declare void @PyErr_SetHandledException(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define hidden i32 @_PyEval_CheckExceptTypeValid(ptr noundef %tstate, ptr nocapture noundef readonly %right) local_unnamed_addr #2 {
define hidden noundef i32 @_PyEval_CheckExceptTypeValid(ptr noundef %tstate, ptr nocapture noundef readonly %right) local_unnamed_addr #2 {
entry:
%0 = getelementptr i8, ptr %right, i64 8
%right.val9 = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -30793,7 +30793,7 @@ declare ptr @PyNumber_Invert(ptr noundef) local_unnamed_addr #4
declare ptr @PyNumber_Negative(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define hidden i32 @_PyEval_UnpackIterable(ptr noundef %tstate, ptr noundef %v, i32 noundef %argcnt, i32 noundef %argcntafter, ptr nocapture noundef %sp) local_unnamed_addr #2 {
define hidden noundef i32 @_PyEval_UnpackIterable(ptr noundef %tstate, ptr noundef %v, i32 noundef %argcnt, i32 noundef %argcntafter, ptr nocapture noundef %sp) local_unnamed_addr #2 {
entry:
%call = tail call ptr @PyObject_GetIter(ptr noundef %v) #15
%cmp = icmp eq ptr %call, null
Expand Down Expand Up @@ -31526,7 +31526,7 @@ while.end: ; preds = %PyMutex_Unlock.exit
}

; Function Attrs: nounwind uwtable
define hidden i32 @_PyEval_SetCoroutineOriginTrackingDepth(i32 noundef %depth) local_unnamed_addr #2 {
define hidden noundef i32 @_PyEval_SetCoroutineOriginTrackingDepth(i32 noundef %depth) local_unnamed_addr #2 {
entry:
%0 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_Py_tss_tstate)
%1 = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -31559,7 +31559,7 @@ entry:
}

; Function Attrs: nounwind uwtable
define hidden i32 @_PyEval_SetAsyncGenFirstiter(ptr noundef %firstiter) local_unnamed_addr #2 {
define hidden noundef i32 @_PyEval_SetAsyncGenFirstiter(ptr noundef %firstiter) local_unnamed_addr #2 {
entry:
%0 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_Py_tss_tstate)
%1 = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -31626,7 +31626,7 @@ entry:
}

; Function Attrs: nounwind uwtable
define hidden i32 @_PyEval_SetAsyncGenFinalizer(ptr noundef %finalizer) local_unnamed_addr #2 {
define hidden noundef i32 @_PyEval_SetAsyncGenFinalizer(ptr noundef %finalizer) local_unnamed_addr #2 {
entry:
%0 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_Py_tss_tstate)
%1 = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -32279,7 +32279,7 @@ return: ; preds = %if.else9, %if.then8
declare ptr @PyUnicode_AsUTF8(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local nonnull ptr @PyEval_GetFuncDesc(ptr nocapture noundef readonly %func) local_unnamed_addr #2 {
define dso_local noundef nonnull ptr @PyEval_GetFuncDesc(ptr nocapture noundef readonly %func) local_unnamed_addr #2 {
entry:
%ob_type = getelementptr inbounds %struct._object, ptr %func, i64 0, i32 1
%0 = load ptr, ptr %ob_type, align 8
Expand All @@ -32303,7 +32303,7 @@ return: ; preds = %PyObject_TypeCheck.
}

; Function Attrs: nounwind uwtable
define dso_local i32 @_PyEval_SliceIndex(ptr noundef %v, ptr nocapture noundef writeonly %pi) local_unnamed_addr #2 {
define dso_local noundef i32 @_PyEval_SliceIndex(ptr noundef %v, ptr nocapture noundef writeonly %pi) local_unnamed_addr #2 {
entry:
%0 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_Py_tss_tstate)
%1 = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -32358,7 +32358,7 @@ return: ; preds = %entry, %if.end8, %_
declare i64 @PyNumber_AsSsize_t(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local i32 @_PyEval_SliceIndexNotNone(ptr noundef %v, ptr nocapture noundef writeonly %pi) local_unnamed_addr #2 {
define dso_local noundef i32 @_PyEval_SliceIndexNotNone(ptr noundef %v, ptr nocapture noundef writeonly %pi) local_unnamed_addr #2 {
entry:
%0 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_Py_tss_tstate)
%1 = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -32437,7 +32437,7 @@ return: ; preds = %entry, %if.end
}

; Function Attrs: nounwind uwtable
define dso_local i32 @Py_EnterRecursiveCall(ptr noundef %where) local_unnamed_addr #2 {
define dso_local noundef i32 @Py_EnterRecursiveCall(ptr noundef %where) local_unnamed_addr #2 {
entry:
%0 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_Py_tss_tstate)
%1 = load ptr, ptr %0, align 8
Expand Down Expand Up @@ -32526,7 +32526,7 @@ declare ptr @PyErr_NoMemory() local_unnamed_addr #4
declare i32 @PyObject_RichCompareBool(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define internal fastcc i32 @positional_only_passed_as_keyword(ptr noundef %tstate, ptr nocapture noundef readonly %co, i64 noundef %kwcount, ptr nocapture noundef readonly %kwnames, ptr noundef %qualname) unnamed_addr #2 {
define internal fastcc noundef i32 @positional_only_passed_as_keyword(ptr noundef %tstate, ptr nocapture noundef readonly %co, i64 noundef %kwcount, ptr nocapture noundef readonly %kwnames, ptr noundef %qualname) unnamed_addr #2 {
entry:
%call = tail call ptr @PyList_New(i64 noundef 0) #15
%cond = icmp eq ptr %call, null
Expand Down
Loading