Skip to content

Conversation

ergawy
Copy link

@ergawy ergawy commented Jul 11, 2024

Cloning hlfir.declare ops during fix up can result in type mismatches. For example, a fir.ref<fir.array<...>> variable is mapped a s fir.box<fir.array<...>> which results in the fix up logic creating invalid IR. This PR fixes the issue by avoiding cloning hlfir.declare ops in the first place since they are specially handled during the fix-up process.

Cloning `hlfir.declare` ops during fix up can result in type mismatches.
For example, a `fir.ref<fir.array<...>>` variable is mapped a s
`fir.box<fir.array<...>>` which results in the fix up logic creating
invalid IR. This PR fixes the issue by avoiding cloning `hlfir.declare`
ops in the first place since they are specially handled during the
fix-up process.
@ergawy ergawy requested review from skatrak and dpalermo July 11, 2024 05:14
Copy link
Member

@skatrak skatrak left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@ergawy ergawy merged commit e8b67b7 into ROCm:amd-trunk-dev Jul 11, 2024
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