agx: assert a subtle invariant

we should probably be more explicit about this ...

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
Alyssa Rosenzweig
2024-09-27 10:20:23 -04:00
committed by Marge Bot
parent ce2067b41c
commit 13191efa86
@@ -835,6 +835,7 @@ reserve_live_in(struct ra_ctx *rctx)
* particular predecessor. That means that such a register allocation
* is valid here, because it was valid in the predecessor.
*/
assert(phi->src[0].type == AGX_INDEX_REGISTER && "not loop source");
phi->dest[0] = phi->src[0];
base = phi->dest[0].value;
} else {