Re: [Mesa-dev] [PATCH 2/5] glsl: Propagate negates through multiplication chains.

2015-04-09 Thread Matt Turner
On Wed, Apr 8, 2015 at 4:38 PM, Ian Romanick wrote: > From: Matt Turner > > 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 up

[Mesa-dev] [PATCH 2/5] glsl: Propagate negates through multiplication chains.

2015-04-08 Thread Ian Romanick
From: Matt Turner 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)) Sandy Bridge w/o NIR and Broadwell w/o NIR are the only platforms hurt by this ch