i965/vec4: Eliminate dead writes to the flag register

Graphics / Mesa 3D Graphics Library / Mesa - Matt Turner [gmail.com] - 24 March 2014 13:06 UTC

For each write, search previous instructions for unread writes to the flag register and remove them. Note that this will not eliminate the last unread write.

total instructions in shared programs: 788074 -> 788004 (-0.01%) instructions in affected programs: 4930 -> 4860 (-1.42%)

764e25d i965/vec4: Eliminate dead writes to the flag register.
src/mesa/drivers/dri/i965/brw_vec4.cpp | 66 +++++++++++++++++++++++---------
1 file changed, 48 insertions(+), 18 deletions(-)

Upstream: cgit.freedesktop.org


  • Share