Skip to content

Conversation

@MrSidims
Copy link
Contributor

The pass reorders alloca instructions in the function, placing them in the entry basic block. In case if the moved alloca is not accompanied by lifetime start/end intrinsics - they are inserted to guard lifetime of the allocated object.

Resolves #3389

The pass reorders alloca instructions in the function, placing them
in the entry basic block. In case if the moved alloca is not accompanied
by lifetime start/end intrinsics - they are inserted to guard lifetime of
the allocated object.

Resolves KhronosGroup#3389

Signed-off-by: Dmitry Sidorov <[email protected]>
wip
Signed-off-by: Sidorov, Dmitry <[email protected]>
@MrSidims
Copy link
Contributor Author

I believe it's not the right approach. Though feel free to take the code and modify it to fix the issue.

@MrSidims MrSidims closed this Jan 13, 2026
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.

kernel calling alloca in non-top block fails validation

1 participant