[Mesa-dev] [PATCH 08/10] glsl: don't let an 'if' then-branch kill copy propagation (elements) for else-branch

Eric Anholt eric at anholt.net
Thu Jul 5 21:30:22 UTC 2018


Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com> writes:

> When handling 'if' in copy propagation elements, if a certain variable
> was killed when processing the first branch of the 'if', then the
> second would get any propagation from previous nodes.
>
>     x = y;
>     if (...) {
>         z = x;  // This would turn into z = y.
>         x = 22; // x gets killed.
>     } else {
>         w = x;  // This would NOT turn into w = y.
>     }

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180705/8014066d/attachment.sig>


More information about the mesa-dev mailing list