[Mesa-dev] [PATCH] i965/fs: Remove try_replace_with_sel().
Matt Turner
mattst88 at gmail.com
Fri Dec 5 10:24:28 PST 2014
On Fri, Dec 5, 2014 at 7:02 AM, Jason Ekstrand <jason at 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.
More information about the mesa-dev
mailing list