util/ra: Only update q_total if the reg is not assigned
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 9 May 2019 22:05:31 +0000 (17:05 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 14 May 2019 17:30:22 +0000 (12:30 -0500)
commite1511f1d4c3949b107fda284ea9117632b9ef61d
tree1e284c107052ff37425422ec4978fa4b673408ff
parent9d6d1f47e784df5941412f1e7f8946c65cb55c8d
util/ra: Only update q_total if the reg is not assigned

We only use q_total if the reg is not assigned so there's no point in
updating it if the reg is not assigned.  This has no known perf benefit
but it will reduce churn in a future commit.

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