intel/fs/ra: Sanity-check our IP counts
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 12 Oct 2020 20:07:25 +0000 (15:07 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:59:27 +0000 (21:59 +0000)
commitf650c4c0c6b5d26cabde2b5672c9a6c769cd35e1
tree50384631449bc30d8d1e11f9198b34e1ca3ac4ab
parentd80d0a6ced99c009986965e80f3b4174d19fa673
intel/fs/ra: Sanity-check our IP counts

Starting with e99081e76d4a, we don't re-construct liveness information
every time we spill a register.  Instead, we're very careful to track
which instructions are spill instructions and not contribute those to
the IP count so that we can continue to use the old liveness information
even though instructions have been added.  This commit adds an assert
that sanity-checks that we count the same number of instructions as our
liveness information is based on.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7084>
src/intel/compiler/brw_fs_reg_allocate.cpp