Skip to content

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
optimize_until = nothing, # run all passes by default
optimize_until::Union{Nothing, Int, String} = nothing, # run all passes by default
)
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.

4 participants