On Fri, Dec 5, 2014 at 7:02 AM, Jason Ekstrand <ja...@jlekstrand.net> wrote:
> First off, how is this different from the sel peephole?

This happens in the visitor during translation from GLSL IR to FS IR.
It only looks for an exact sequence of IF/MOV/ELSE/MOV/ENDIF where the
MOVs are to the same destination.

The peephole happens in the optimization loop itself. The peephole
looks for sequences of MOVs, rather than just a single one. The
peephole also emits a MOV if the two sources you're selecting from are
identical.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to