[Mesa-dev] [PATCH] nir: Add variants of some of the comparison simplifications.

Eric Anholt eric at anholt.net
Wed Jan 28 23:20:52 PST 2015


Jason Ekstrand <jason at jlekstrand.net> writes:

> I've got a patch I cooked up today that generalizes this a bit.  I haven't
> sent it yet because it lacks shader-db statistics.  That said, I'm fine
> with merging this in the mean time.

Not sure what generalization you're working on, but something that let
me have "any sort of bool" as an expression node, and that "and(flt(a,
b), flt(c, d))" was recognized as a bool would be nice for some of these
patterns.  I was wondering if band/bor operations that were only defined
on bool arguments would be a good idea (even though they'd codegen just
like normal iand/ior), but then I got to thinking that this sounds like
just a specific case of generally wanting possible-value categorization
for SSA nodes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150128/e4f1ff42/attachment.sig>


More information about the mesa-dev mailing list