On Fri, 09 Sep 2011 15:21:14 -0700, Kenneth Graunke <kenn...@whitecape.org> 
wrote:
> On 09/08/2011 11:32 PM, Eric Anholt wrote:
> > + * Does algebraic optimizations (0 * a = 0, 1 * a = a, a + 0 = a).
> 
> I was going to ask "what about commutativity?"...after all, 0 * a but a
> + 0 seems kind of arbitrary...but then I implemented it and tried it on
> shader-db:
> 
> Total instructions: 39967 -> 39967
> 0/137 programs affected (0.0%)
> 
> So, apparently not worth it. :)

Immediates can only appear as the last operand of an instruction.

Attachment: pgpihRjbgM1hh.pgp
Description: PGP signature

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

Reply via email to