Re: [Mesa-dev] Target-aware nir_opt_algebraic.

2015-02-17 Thread Kenneth Graunke
On Sunday, February 01, 2015 01:17:19 PM Eric Anholt wrote: > I'm pretty happy with how it turned out. What I'm not sure on is that > I've got a couple of places where I replicated another transformation, > like fsat(fsat(a)) -> fsat(a) but with a lowered fsat. I could see > potentially having on

[Mesa-dev] Target-aware nir_opt_algebraic.

2015-02-01 Thread Eric Anholt
I'm pretty happy with how it turned out. What I'm not sure on is that I've got a couple of places where I replicated another transformation, like fsat(fsat(a)) -> fsat(a) but with a lowered fsat. I could see potentially having only the canonical form appear in nir_opt_algebraic, and I'd have two