Skip to content

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.

@kartcq kartcq merged commit 2e3d390 into llvm:main Dec 31, 2024
9 checks passed
qiaojbao pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Feb 7, 2025
Local branch amd-gfx bc2da11 Merged main:f590963db836 into amd-gfx:23e4c3a6e3aa
Remote branch main 2e3d390 [polly] Skip instructions of different function in isHoistableLoad. (llvm#118963)
@kartcq kartcq deleted the assert_crash branch April 16, 2025 07:37
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