Skip to content

Add SPIRVLowerAlloca pass#3415

Closed
MrSidims wants to merge 2 commits intoKhronosGroup:mainfrom
MrSidims:move-alloca
Closed

Add SPIRVLowerAlloca pass#3415
MrSidims wants to merge 2 commits intoKhronosGroup:mainfrom
MrSidims:move-alloca

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 <dmitry.sidorov@intel.com>
wip
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
@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