On Wed, Apr 8, 2015 at 4:38 PM, Ian Romanick <[email protected]> wrote:
> From: Matt Turner <[email protected]>
>
> We propagate negations to the right-most leaves of the multiplication
> expression trees:
>
>  - mul(neg(x), neg(y)) -> mul(x, y)
>  - mul(neg(x), y) -> neg(mul(x, y))
>  - mul(x, neg(y)) -> neg(mul(x, y))

I've had an updated version of this patch that propagates negates up
multiplication trees. I've thought that would be better, but I've
never gotten the changes to be profitable with NIR.

This is an improvement as-is though, so let's do it.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to