Dave Airlie <airl...@gmail.com> writes:

> From: Dave Airlie <airl...@redhat.com>
>
> This is ported from GLSL and converts
>
> if (cond)
>       discard;
>
> into
> discard_if(cond);
>
> This removes a block, but also is needed by radv
> to workaround a bug in the LLVM backend.
I think this is missing "also make sure that after our if statement,
phis aren't using our then/else blocks to effectively do conditional
selects based on the if condition." (which I ran into when trying to
remove "dead" control flow)

Attachment: signature.asc
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to