util/ra: Sanity check that we're adding a valid reg to a class.
authorEric Anholt <eric@anholt.net>
Thu, 9 Apr 2020 22:10:08 +0000 (15:10 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 19:46:08 +0000 (19:46 +0000)
commita1de267a21acacc4c77bbb94127bfbf1caa4bfc8
tree5bf60287a83dcc6cc84f7931342f91a53ae141a8
parent5bcaf30aba08b718e913b10745df5e92854ed5b6
util/ra: Sanity check that we're adding a valid reg to a class.

BITSET_SET might not segfault on you right away if you're just slightly
off, and an assert is nicer anyway.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4537>
src/util/register_allocate.c