Re: [Mesa-dev] [PATCH 20/20] i965/fs: Preserve CFG in predicated break pass.

2014-08-19 Thread Matt Turner
On Tue, Aug 19, 2014 at 1:52 AM, Pohjolainen, Topi wrote: > On Thu, Jul 24, 2014 at 07:54:27PM -0700, Matt Turner wrote: >> Operating on this code, >> >> B0: ... >> cmp.ne.f0(8) >> (+f0) if(8) >> B1: break(8) >> B2: endif(8) >> >> We can delete B2 without attempting to merge any blocks, si

Re: [Mesa-dev] [PATCH 20/20] i965/fs: Preserve CFG in predicated break pass.

2014-08-19 Thread Pohjolainen, Topi
On Thu, Jul 24, 2014 at 07:54:27PM -0700, Matt Turner wrote: > Operating on this code, > > B0: ... > cmp.ne.f0(8) > (+f0) if(8) > B1: break(8) > B2: endif(8) > > We can delete B2 without attempting to merge any blocks, since the > break/continue instruction necessarily ends the previous b

[Mesa-dev] [PATCH 20/20] i965/fs: Preserve CFG in predicated break pass.

2014-07-24 Thread Matt Turner
Operating on this code, B0: ... cmp.ne.f0(8) (+f0) if(8) B1: break(8) B2: endif(8) We can delete B2 without attempting to merge any blocks, since the break/continue instruction necessarily ends the previous block. After deleting the if instruction, we attempt to merge blocks B0 and B1. -