On 07/12/2011 04:36 PM, Eric Anholt wrote:
> On Tue, 12 Jul 2011 15:44:12 -0500, Bryan Cain wrote:
>> It appears that the copy propagation pass in the GLSL compiler (in
>> opt_copy_propagation.cpp) doesn't do copy propagation when the
>> components of a variable are initialized separately, like th
On Tue, 12 Jul 2011 15:44:12 -0500, Bryan Cain wrote:
> It appears that the copy propagation pass in the GLSL compiler (in
> opt_copy_propagation.cpp) doesn't do copy propagation when the
> components of a variable are initialized separately, like this:
>
> (declare (temporary ) vec4 vec_ctor)
>
It appears that the copy propagation pass in the GLSL compiler (in
opt_copy_propagation.cpp) doesn't do copy propagation when the
components of a variable are initialized separately, like this:
(declare (temporary ) vec4 vec_ctor)
(assign (w) (var_ref vec_ctor) (constant float (1.00)) )
(ass