On Sun, 8 Jan 2012 22:44:17 -0500, Matt Turner <matts...@gmail.com> wrote: > GLSL spec boneheadedly says (a ^^ a) must actually be evaluated.
What it's trying to say there is that any side-effects of both LHS and RHS will occur (as opposed to how && or || work), not that you actually compute the expression that you could just avoid. Any side effects will already be taken care of before opt_algebraic gets a look at the ir_expression.
pgpIHZ6tXT1MD.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev