-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
add CSE optimization tests for iterating over slice #150065
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
base: main
Are you sure you want to change the base?
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use |
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 should be a codegen-llvm test, not an assembly-llvm test.
|
Thank you for the feedback! I've updated the test from assembly-llvm to codegen-llvm. |
| //! Checks function has memory(argmem: read) attribute. | ||
| //! Regression test for <https://github.com/rust-lang/rust/issues/119573>. | ||
| //@ compile-flags: -O | ||
| //@ only-x86_64 |
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.
Is this still needed given this is an LLVM test now?
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.
You're right, it's no longer needed. I've uploaded a version with it removed.
|
Reminder, once the PR becomes ready for a review, use |
|
@rustbot ready |
|
r=me with commits squashed |
882ee93 to
65c1722
Compare
|
@rustbot ready |
This PR is regression test for issue #119573.
This PR introduces a new regression test to verify a critical optimization known as Common Subexpression Elimination (CSE) is correctly applied during various slice iteration patterns.