Skip to content

verify that optimize_until is a valid pass #58033

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

Merged
merged 4 commits into from
Apr 12, 2025
Merged

Conversation

KristofferC
Copy link
Member

I've noticed a few places in tests where optimize_until is called with a non-existent pass name. This is an attempt to catch those places and hopefully prevent further possible regressions when someone renames a pass and forgets to update the tests that matches on that name.

@KristofferC KristofferC added the compiler:optimizer Optimization passes (mostly in base/compiler/ssair/) label Apr 7, 2025
@KristofferC KristofferC force-pushed the kc/verify_optimize_until branch 2 times, most recently from 8ba7efd to bb8d27a Compare April 7, 2025 15:19
@aviatesk aviatesk force-pushed the kc/verify_optimize_until branch from bb8d27a to 3094abc Compare April 8, 2025 11:33
)
if optimize_until isa String && !(optimize_until in ALL_PASS_NAMES)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we have enough infrastructure in the compiler world to actually run this in test, but since we never call it from there anyway, I guess that's not a problem.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can change it to a loop?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use Base.Compiler.contains_is for this. I will make the changes quickly.

@KristofferC KristofferC force-pushed the kc/verify_optimize_until branch from 1fee392 to 0141925 Compare April 11, 2025 08:26
@aviatesk aviatesk force-pushed the kc/verify_optimize_until branch from 4171256 to 021bb73 Compare April 12, 2025 14:52
@aviatesk aviatesk merged commit 8681bb8 into master Apr 12, 2025
7 checks passed
@aviatesk aviatesk deleted the kc/verify_optimize_until branch April 12, 2025 22:27
KristofferC added a commit that referenced this pull request Apr 26, 2025
I've noticed a few places in tests where `optimize_until` is called with
a non-existent pass name. This is an attempt to catch those places and
hopefully prevent further possible regressions when someone renames a
pass and forgets to update the tests that matches on that name.

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
(cherry picked from commit 8681bb8)
KristofferC added a commit that referenced this pull request Apr 26, 2025
I've noticed a few places in tests where `optimize_until` is called with
a non-existent pass name. This is an attempt to catch those places and
hopefully prevent further possible regressions when someone renames a
pass and forgets to update the tests that matches on that name.

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
(cherry picked from commit 8681bb8)
KristofferC added a commit that referenced this pull request Apr 26, 2025
I've noticed a few places in tests where `optimize_until` is called with
a non-existent pass name. This is an attempt to catch those places and
hopefully prevent further possible regressions when someone renames a
pass and forgets to update the tests that matches on that name.

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
(cherry picked from commit 8681bb8)
KristofferC added a commit that referenced this pull request Apr 26, 2025
I've noticed a few places in tests where `optimize_until` is called with
a non-existent pass name. This is an attempt to catch those places and
hopefully prevent further possible regressions when someone renames a
pass and forgets to update the tests that matches on that name.

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
(cherry picked from commit 8681bb8)
KristofferC added a commit that referenced this pull request Apr 26, 2025
I've noticed a few places in tests where `optimize_until` is called with
a non-existent pass name. This is an attempt to catch those places and
hopefully prevent further possible regressions when someone renames a
pass and forgets to update the tests that matches on that name.

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
(cherry picked from commit 8681bb8)
serenity4 pushed a commit to serenity4/julia that referenced this pull request May 1, 2025
I've noticed a few places in tests where `optimize_until` is called with
a non-existent pass name. This is an attempt to catch those places and
hopefully prevent further possible regressions when someone renames a
pass and forgets to update the tests that matches on that name.

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:optimizer Optimization passes (mostly in base/compiler/ssair/)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants