mesa/src
Caio Marcelo de Oliveira Filho d7849fd1da glsl: don't let an 'if' then-branch kill const propagation for else-branch
When handling 'if' in constant propagation, if a certain variable was
killed when processing the first branch of the 'if', then the second
would get any propagation from previous nodes. This is similar to the
change done for copy propagation code.

    x = 1;
    if (...) {
        z = x;  // This would turn into z = 1.
        x = 22; // x gets killed.
    } else {
        w = x;  // This would NOT turn into w = 1.
    }

With the change, we let constant propagation happen independently in
the two branches and only then apply the killed values for the
subsequent code.

The new code use a single hash table for keeping the kills of both
branches (the branches only write to it), and it gets deleted after we
use -- instead of waiting for mem_ctx to collect it.

NIR deals well with constant propagation, so it already covered for
the missing ones that this patch fixes.

Reviewed-by: Eric Anholt <eric@anholt.net>
2018-07-16 16:33:39 -07:00
..
amd nir: cleanup oversized arrays in nir_swizzle calls 2018-07-13 15:46:57 +02:00
broadcom v3d: Disable shader-db cycle estimates until we sort out TMU estimates. 2018-07-16 14:39:59 -07:00
compiler glsl: don't let an 'if' then-branch kill const propagation for else-branch 2018-07-16 16:33:39 -07:00
egl egl: fix build race in automake 2018-06-29 12:49:51 +01:00
gallium r600: fix build after the removal of RADEON_PRIO_* flags 2018-07-16 14:33:31 -04:00
gbm
getopt
glx glx: Don't allow glXMakeContextCurrent() with only one valid drawable 2018-07-09 12:03:18 -04:00
gtest
hgl
intel intel/batch_decoder: decoding of 3DSTATE_CONSTANT_BODY. 2018-07-16 12:18:36 -07:00
loader
mapi python: Stop using the Python 2 exception syntax 2018-07-06 10:18:43 -07:00
mesa intel/batch_decoder: decoding of 3DSTATE_CONSTANT_BODY. 2018-07-16 12:18:36 -07:00
util util/hash_table: add helper to remove entry by key 2018-07-13 14:20:49 -07:00
vulkan anv,radv: Add support for VK_KHR_get_display_properties2 2018-07-09 17:09:41 -07:00
git_sha1.h.in
Makefile.am
meson.build
SConscript