mesa/st/glsl_to_tgsi: Add tracking of ifelse writes in register merging
authorGert Wollny <gw.fossdev@gmail.com>
Fri, 8 Sep 2017 11:40:09 +0000 (13:40 +0200)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Jan 2018 17:23:00 +0000 (10:23 -0700)
commit807e2539e512ca6c96f059da855473eb7be99ba1
treed63915278f0020a9d2434ed163d579955cdfeb08
parent8dda01ef5a6b1233fa1a3e2222164af0e8ee9567
mesa/st/glsl_to_tgsi: Add tracking of ifelse writes in register merging

Improve the life-time evaluation of temporary registers by also tracking
writes in both if and else branches and in up to 32 nested scopes.
As a result the estimated required register life-times can be further
reduced enabling more registers to be merged.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp