r300: Cache the var list in the peephole_mul_omod() loop.
authorEmma Anholt <emma@anholt.net>
Tue, 7 Dec 2021 19:09:06 +0000 (11:09 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 8 Dec 2021 02:35:52 +0000 (02:35 +0000)
commit915af8de8b15886c9fe12ff4bed4fa1fbb904464
tree39a82ced92bbe46e091447b4804a2e023085af16
parent42e8f48be729535449bfae3983d4350993149977
r300: Cache the var list in the peephole_mul_omod() loop.

If we're not making progress (which the function was already giving us!),
then there's no need to recompute the list.  Reduces
pixmark-piano/7.shader_test compile time from 50 seconds to 10.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14117>
src/gallium/drivers/r300/compiler/radeon_optimize.c