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:
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 {
|
||||
|
||||
Reference in New Issue
Block a user