-
Notifications
You must be signed in to change notification settings - Fork 9
pre-commit: PR165976 #3013
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: PR165976 #3013
Conversation
Diff moderunner: ariselab-64c-docker 33312 files changed, 121620881 insertions(+), 121624843 deletions(-) +14 abc/mvcApi.ll |
|
The provided patch introduces several optimizations and transformations across multiple LLVM IR files. Here are the major changes:
These changes collectively aim to enhance performance through more efficient arithmetic, simplified control flow, and utilization of LLVM intrinsics, while maintaining functional equivalence. model: qwen-plus-latest |
| %.027 = add nsw i32 %8, -1 | ||
| br label %.lr.ph | ||
|
|
||
| .lr.ph: ; preds = %.lr.ph.preheader, %.lr.ph | ||
| %.028 = phi i32 [ %.0, %.lr.ph ], [ %.027, %.lr.ph.preheader ] | ||
| %26 = zext nneg i32 %.028 to i64 | ||
| %27 = getelementptr inbounds nuw i32, ptr %23, i64 %26 | ||
| store i32 -1, ptr %27, align 4, !tbaa !23 | ||
| %.0 = add nsw i32 %.028, -1 | ||
| %28 = icmp ult i32 %.0, 16777215 | ||
| br i1 %28, label %.lr.ph, label %.loopexit, !llvm.loop !29 | ||
|
|
||
| .loopexit: ; preds = %.lr.ph, %14, %9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a regression: the new version expands the call void @llvm.memset.p0.i64, which is faster but with more IR lines.
| .thread:; preds = %20 | ||
| %26 = tail call ptr @test_get_argument(i64 noundef 0) #6 | ||
| store ptr %26, ptr @eecert_filename, align 8, !tbaa !11 | ||
| %27 = tail call ptr @test_get_argument(i64 noundef 1) #6 | ||
| store ptr %27, ptr @cacert_filename, align 8, !tbaa !11 | ||
| br label %.thread29 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block is generated by JumpThreading
| %30 = and i32 %27, 192 | ||
| %31 = icmp eq i32 %30, 64 | ||
| %or.cond5 = icmp slt i8 %26, -1 | ||
| %or.cond42 = or i1 %or.cond5, %31 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regression
|
/close |
Link: llvm/llvm-project#165976
Requested by: @Camsyn