Re: [Mesa-dev] Case where opt_copy_propagation doesn't do its job

2011-07-12 Thread Bryan Cain
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

Re: [Mesa-dev] Case where opt_copy_propagation doesn't do its job

2011-07-12 Thread Eric Anholt
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) >

[Mesa-dev] Case where opt_copy_propagation doesn't do its job

2011-07-12 Thread Bryan Cain
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