AMDGPU: Avoid endpgm in middle of block for fallback trap lowering.
This was inserting an s_endpgm in the middle of the block when it has to be a terminator. Split the block and insert a branch to a new block with the trap if it's not in a terminator position. Fixes verifier error on LDS in function with no trap support (and other trap sources).
Loading
Please sign in to comment