freedreno/ir3/ra: move regs_count==0 check
authorRob Clark <robdclark@chromium.org>
Wed, 23 Oct 2019 16:50:22 +0000 (09:50 -0700)
committerRob Clark <robdclark@gmail.com>
Sat, 9 Nov 2019 02:49:15 +0000 (02:49 +0000)
commit8b92052f1092048306cb85abb29599918ac33bd7
tree230c65a8942ca5e8cf6aff77e0de80922ca5e29b
parentbd21c73d3f55332c097841eab42b570709feab13
freedreno/ir3/ra: move regs_count==0 check

Fold it in to writes_gpr() (since a register that does not reference any
registers by definition does not write a register).  This lets us avoid
having to handle this case in a few other places.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3_ra.c