llvm-project
594cce3c - [AMDGPU] Change static NOP last terminator SI_DEMOTE_I1 to be replaced by S_BRANCH instead of assert (#204649)

Commit
39 days ago
[AMDGPU] Change static NOP last terminator SI_DEMOTE_I1 to be replaced by S_BRANCH instead of assert (#204649) This issue was first discovered in some testing downstream. A specific chain of transformations on a ballot instruction with a constant argument followed by an llvm.amgcn.wqm.demote call leads to an instruction of `SI_DEMOTE_I1 -1, 0` being the last terminator of a block with a single successor. This instruction is a NOP and can safely be replaced with an S_BRANCH to the block's successor instead of asserting failure. The test added in this change is a very simplified recreation of the pattern seen in the shader compilation in the downstream that lead to assertion failure
Author
Parents
Loading