Skip to content
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

Make late_gc_lowering more robust #57380

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

gbaraldi
Copy link
Member

There are cases where we optimize the SRet more than the pass expected so try and handle those. I'm tryin to get a test for this, this is separated from #52850 to make merging both easier

@gbaraldi gbaraldi requested a review from vchuravy February 12, 2025 21:13
@oscardssmith oscardssmith added the needs tests Unit tests are required for this change label Feb 12, 2025
Copy link
Member

@vchuravy vchuravy left a comment

Choose a reason for hiding this comment

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

Looks fine to me, but having a test would be great.

Maybe you can just manually write one? E.g. one with a phi node and one with a select?

@gbaraldi gbaraldi removed the needs tests Unit tests are required for this change label Feb 13, 2025
Comment on lines +174 to +176
should_run |= pgcstack_getter != nullptr;
should_run |= adoptthread_func != nullptr;
should_run |= pgcstack != nullptr;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
should_run |= pgcstack_getter != nullptr;
should_run |= adoptthread_func != nullptr;
should_run |= pgcstack != nullptr;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants