Re: [Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-08 Thread Tom Stellard
On Thu, Apr 07, 2011 at 03:51:40AM +, Matt Turner wrote: > On Thu, Apr 7, 2011 at 3:06 AM, Tom Stellard wrote: > > I don't know anything about this code, but I just want to verify that > T0 (tee zero) and TO (tee oh) are different things and are used in the > right places. > > > +/** > > + *

Re: [Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-07 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/06/2011 08:51 PM, Matt Turner wrote: > On Thu, Apr 7, 2011 at 3:06 AM, Tom Stellard wrote: > > I don't know anything about this code, but I just want to verify that > T0 (tee zero) and TO (tee oh) are different things and are used in the > righ

Re: [Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-06 Thread Matt Turner
On Thu, Apr 7, 2011 at 3:06 AM, Tom Stellard wrote: I don't know anything about this code, but I just want to verify that T0 (tee zero) and TO (tee oh) are different things and are used in the right places. > +/** > + * This pass replaces CMP T0, T1 T2 T0 with MOV TO, T2 when the CMP > + * instr

[Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-06 Thread Tom Stellard
This pass removes conditions from conditional assignments when possible. This pass is useful for hardware that requires a lot of lowering passes that generate many CMP instructions. --- src/mesa/program/prog_optimize.c | 78 ++ 1 files changed, 78 insertions(+

Re: [Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-06 Thread Jerome Glisse
On Tue, Apr 5, 2011 at 2:20 AM, Tom Stellard wrote: > This pass removes conditions from conditional assignments when possible. > This pass is useful for hardware that requires a lot of lowering passes > that generate many CMP instructions. > --- >  src/mesa/program/prog_optimize.c |   87 > ++

Re: [Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-05 Thread Brian Paul
On 04/05/2011 12:20 AM, Tom Stellard wrote: This pass removes conditions from conditional assignments when possible. This pass is useful for hardware that requires a lot of lowering passes that generate many CMP instructions. --- src/mesa/program/prog_optimize.c | 87 +

[Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-04 Thread Tom Stellard
This pass removes conditions from conditional assignments when possible. This pass is useful for hardware that requires a lot of lowering passes that generate many CMP instructions. --- src/mesa/program/prog_optimize.c | 87 ++ 1 files changed, 87 insertions(+