util/ra: Only update best_optimistic_node if !progress
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 9 May 2019 18:51:03 +0000 (13:51 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 14 May 2019 17:30:22 +0000 (12:30 -0500)
commit9d6d1f47e784df5941412f1e7f8946c65cb55c8d
treee39d21b3013b0d32615ab9e04ca47be803a8ff69
parentde56d3a2d1ce5ebd223c0e490d1884f976bddcb7
util/ra: Only update best_optimistic_node if !progress

This shaves about half a second off the 30 second compile time of one of
the compute shaders in Aztec ruins.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/util/register_allocate.c