agx: assert phis don't have .kill set
it's meaningless for phis but would cause soundness problems. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
committed by
Marge Bot
parent
6b878c5b57
commit
c41c6ff27f
@@ -931,6 +931,8 @@ agx_ra_assign_local(struct ra_ctx *rctx)
|
||||
/* First, free killed sources */
|
||||
agx_foreach_ssa_src(I, s) {
|
||||
if (I->src[s].kill) {
|
||||
assert(I->op != AGX_OPCODE_PHI && "phis don't use .kill");
|
||||
|
||||
enum ra_class cls = ra_class_for_index(I->src[s]);
|
||||
unsigned reg = ssa_to_reg[I->src[s].value];
|
||||
unsigned count = ncomps[I->src[s].value];
|
||||
|
||||
Reference in New Issue
Block a user