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

[polly] Skip instructions of different function in isHoistableLoad. #118963

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

kartcq
Copy link
Contributor

@kartcq kartcq commented Dec 6, 2024

After patch 5ce47a5, some assert crashes occur in Polly. This issue arises because an instruction from one function queries the Dominator Tree (DT) of another function. To fix this, the isHoistableLoad function now skips instructions that belong to different function while iterating.

After patch 5ce47a5, some assert crashes occur in Polly. This
issue arises because an instruction from one function queries the
Dominator Tree (DT) of another function. To fix this, the
`isHoistableLoad` function now skips instructions that belong to
different function while iterating.
Copy link
Collaborator

@efriedma-quic efriedma-quic left a comment

Choose a reason for hiding this comment

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

LGTM

I'm not sure logic here really makes sense... do we really want to be iterating over all the uses of a ConstantPointerNull? But this preserves the existing behavior, which seems fine.

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.

2 participants