-
Notifications
You must be signed in to change notification settings - Fork 9
pre-commit: PR156477 #2743
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: PR156477 #2743
Conversation
Diff moderunner: ariselab-64c-docker 4316 files changed, 12130363 insertions(+), 12216520 deletions(-) 36 25 bench/abc/optimized/amapLiberty.ll |
|
The provided diff introduces several optimizations across multiple benchmarks, primarily focused on improving switch statement handling and reducing control flow complexity. Here are the major changes:
These changes collectively aim to improve performance by reducing branching, enabling better optimization, and leveraging LLVM intrinsics and bit manipulation for more predictable and efficient code. model: qwen-plus-latest |
| %switch.cast.i = trunc nuw nsw i32 %28 to i3 | ||
| %switch.downshift.i = lshr exact i3 -4, %switch.cast.i | ||
| %switch.masked.i = trunc i3 %switch.downshift.i to i1 | ||
| br i1 %switch.masked.i, label %.thread28.i, label %29 |
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.
| %switch.cast = zext nneg i8 %1 to i9 | ||
| %switch.downshift = lshr i9 3, %switch.cast | ||
| %switch.masked = trunc i9 %switch.downshift to i1 | ||
| ret i1 %switch.masked |
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
|
Lots of regressions related to the mask based lowering not being optimized. /add-label regression |
Link: llvm/llvm-project#156477
Requested by: @nikic