Re: [Mesa-dev] [PATCH] i965/fs: New peephole optimization to flatten IF/BREAK/ENDIF.

2013-11-09 Thread Kenneth Graunke
On 11/05/2013 02:58 PM, Paul Berry wrote: [snip] Instead of this special-purpose peephole optimization, I'm wondering if it would be more useful to create a more general optimization pass that just converts the entire IF block to predicated instructions, assuming certain conditions hold.

Re: [Mesa-dev] [PATCH] i965/fs: New peephole optimization to flatten IF/BREAK/ENDIF.

2013-11-05 Thread Paul Berry
On 1 November 2013 17:31, Matt Turner matts...@gmail.com wrote: total instructions in shared programs: 1649485 - 1649157 (-0.02%) instructions in affected programs: 7823 - 7495 (-4.19%) --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_fs.cpp

Re: [Mesa-dev] [PATCH] i965/fs: New peephole optimization to flatten IF/BREAK/ENDIF.

2013-11-05 Thread Paul Berry
On 5 November 2013 14:58, Paul Berry stereotype...@gmail.com wrote: On 1 November 2013 17:31, Matt Turner matts...@gmail.com wrote: total instructions in shared programs: 1649485 - 1649157 (-0.02%) instructions in affected programs: 7823 - 7495 (-4.19%) ---

[Mesa-dev] [PATCH] i965/fs: New peephole optimization to flatten IF/BREAK/ENDIF.

2013-11-01 Thread Matt Turner
total instructions in shared programs: 1649485 - 1649157 (-0.02%) instructions in affected programs: 7823 - 7495 (-4.19%) --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/brw_fs.h