Re: [Mesa-dev] [PATCH 3/4] glsl: Slight change to the code generated by if-flattening

2011-08-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/03/2011 01:17 AM, Ian Romanick wrote: > On 08/02/2011 07:45 PM, Eric Anholt wrote: >> On Tue, 2 Aug 2011 17:52:03 -0700, "Ian Romanick" >> wrote: >>> From: Ian Romanick >>> >>> Now the condition (for the then-clause) and the inverse condition

Re: [Mesa-dev] [PATCH 3/4] glsl: Slight change to the code generated by if-flattening

2011-08-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2011 07:45 PM, Eric Anholt wrote: > On Tue, 2 Aug 2011 17:52:03 -0700, "Ian Romanick" > wrote: >> From: Ian Romanick >> >> Now the condition (for the then-clause) and the inverse condition (for >> the else-clause) get written to sepearate

Re: [Mesa-dev] [PATCH 3/4] glsl: Slight change to the code generated by if-flattening

2011-08-02 Thread Eric Anholt
On Tue, 2 Aug 2011 17:52:03 -0700, "Ian Romanick" wrote: > From: Ian Romanick > > Now the condition (for the then-clause) and the inverse condition (for > the else-clause) get written to sepearate temporary variables. In the "separate" > presense of complex conditions, this may result in mor

[Mesa-dev] [PATCH 3/4] glsl: Slight change to the code generated by if-flattening

2011-08-02 Thread Ian Romanick
From: Ian Romanick Now the condition (for the then-clause) and the inverse condition (for the else-clause) get written to sepearate temporary variables. In the presense of complex conditions, this may result in more code being generated. --- src/glsl/lower_if_to_cond_assign.cpp | 62 +