Re: [Mesa-dev] [PATCH 05/15] i965/fs: Don't dead code eliminate CMP(N).

2013-10-29 Thread Matt Turner
On Mon, Oct 28, 2013 at 11:08 PM, Eric Anholt wrote: > Matt Turner writes: > >> Since compare instructions write the flag register, they should not be >> considered dead even if their destination is never read. Instead of >> removing them if found to be dead, set their destination to null to free

Re: [Mesa-dev] [PATCH 05/15] i965/fs: Don't dead code eliminate CMP(N).

2013-10-28 Thread Eric Anholt
Matt Turner writes: > Since compare instructions write the flag register, they should not be > considered dead even if their destination is never read. Instead of > removing them if found to be dead, set their destination to null to free > a register. > > --- > src/mesa/drivers/dri/i965/brw_fs.c

[Mesa-dev] [PATCH 05/15] i965/fs: Don't dead code eliminate CMP(N).

2013-10-28 Thread Matt Turner
Since compare instructions write the flag register, they should not be considered dead even if their destination is never read. Instead of removing them if found to be dead, set their destination to null to free a register. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 6 -- 1 file changed, 4 ins