panfrost/midgard: Check write-before-read in liveness analysis
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 19 Jul 2019 19:11:09 +0000 (12:11 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 22 Jul 2019 15:20:34 +0000 (08:20 -0700)
commit076838ef0cba3bffd8d89a02146c2fcf18c30871
tree9bcc0250a4b9c020abf9188e4b5a2c8b8d2bbf88
parent997f85c136882569e56b433292feb09dcd4d33fb
panfrost/midgard: Check write-before-read in liveness analysis

If we write to an index before reading it, the old copy we're checking
liveness for isn't live in this block, even if it does get read later.
Fixes abnormally high register pressure in shaders with loops.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_liveness.c