aco/ra: handle empty def_reg interval in get_regs_for_copies
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 24 Jun 2022 10:53:18 +0000 (11:53 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Sep 2022 11:22:46 +0000 (11:22 +0000)
commitefcbccaf0ee76ec8e0f23a3de651c56cd0b621a4
treee8c521acf1ce0c0db8a565b83e25442ca3362783
parent703d66254d6a94f662090abce24c392aa7fb3357
aco/ra: handle empty def_reg interval in get_regs_for_copies

If def_reg is empty, then def_reg.lo() may be lower than bounds.lo() if
we're moving VGPRs and info.bounds will be invalid.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17493>
src/amd/compiler/aco_register_allocation.cpp
src/amd/compiler/tests/test_regalloc.cpp