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

[Flang][OpenMP] Remove unnecessary handling for loop wrappers #108

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

skatrak
Copy link

@skatrak skatrak commented Jul 4, 2024

The code removed by this patch was added with the intention of preventing the use of regions belonging to loop wrapper operations as a point to insert allocations. However, this issue is only present for omp.parallel wrappers, which are handled right before this piece of code.

The result is that any operations that are currently captured by this piece of code would be handled correctly by letting execution of the getAllocaBlock() method continue and return the entry block of the parent func.func operation.

The code removed by this patch was added with the intention of preventing the
use of regions belonging to loop wrapper operations as a point to insert
allocations. However, this issue is only present for `omp.parallel` wrappers,
which are handled right before this piece of code.

The result is that any operations that are currently captured by this piece of
code would be handled correctly by letting execution of the `getAllocaBlock()`
method continue and return the entry block of the parent `func.func` operation.
Copy link

@agozillon agozillon left a comment

Choose a reason for hiding this comment

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

LGTM!

@skatrak skatrak merged commit 05d1c01 into ROCm:amd-trunk-dev Jul 5, 2024
3 of 5 checks passed
@skatrak skatrak deleted the atd/alloca-wrappers branch July 5, 2024 09:14
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