Re: [Mesa-dev] [PATCH 13/16] i965/fs: Add a saturation propagation optimization pass.

2014-01-17 Thread Jordan Justen
On Thu, Dec 19, 2013 at 1:40 PM, Matt Turner wrote: > Transforms, for example, > > mul vgrf3, vgrf2, vgrf1 > mov.sat vgrf4, vgrf3 > > into > > mul.sat vgrf3, vgrf2, vgrf1 > mov vgrf4, vgrf3 > > which gives register_coalescing an opportunity to remove the MOV > instruction. > > total instru

Re: [Mesa-dev] [PATCH 13/16] i965/fs: Add a saturation propagation optimization pass.

2014-01-10 Thread Matt Turner
On Thu, Dec 26, 2013 at 5:54 AM, Pohjolainen, Topi wrote: > On Thu, Dec 19, 2013 at 01:40:27PM -0800, Matt Turner wrote: >> Transforms, for example, >> >> mul vgrf3, vgrf2, vgrf1 >> mov.sat vgrf4, vgrf3 >> >> into >> >> mul.sat vgrf3, vgrf2, vgrf1 >> mov vgrf4, vgrf3 >> >> which gives regi

Re: [Mesa-dev] [PATCH 13/16] i965/fs: Add a saturation propagation optimization pass.

2013-12-26 Thread Pohjolainen, Topi
On Thu, Dec 19, 2013 at 01:40:27PM -0800, Matt Turner wrote: > Transforms, for example, > > mul vgrf3, vgrf2, vgrf1 > mov.sat vgrf4, vgrf3 > > into > > mul.sat vgrf3, vgrf2, vgrf1 > mov vgrf4, vgrf3 > > which gives register_coalescing an opportunity to remove the MOV > instruction. > >

[Mesa-dev] [PATCH 13/16] i965/fs: Add a saturation propagation optimization pass.

2013-12-19 Thread Matt Turner
Transforms, for example, mul vgrf3, vgrf2, vgrf1 mov.sat vgrf4, vgrf3 into mul.sat vgrf3, vgrf2, vgrf1 mov vgrf4, vgrf3 which gives register_coalescing an opportunity to remove the MOV instruction. total instructions in shared programs: 1512588 -> 1501297 (-0.75%) instructions in affec