[cfe-commits] r54237 - in /cfe/trunk: lib/CodeGen/CGExprAgg.cpp	test/CodeGen/2008-07-30-implicit-initialization.c
    Chris Lattner 
    clattner at apple.com
       
    Wed Jul 30 21:03:35 PDT 2008
    
    
  
On Jul 30, 2008, at 5:46 PM, Eli Friedman wrote:
> On Wed, Jul 30, 2008 at 2:00 PM, Daniel Dunbar <daniel at zuster.org>  
> wrote:
>> +#if 0
>> +/* Optimizer isn't smart enough to reduce this since we use
>> +   memset. Hrm. */
>> +int f1() {
>> +  struct s0 x[2] = { {0} };
>> +  return x[1].x;
>> +}
>> +#endif
>
> It might be worth filing a bug on this.  I don't think it It should be
> very difficult to make GVN smart enough to deal with this.
Please add a testcase to http://llvm.org/PR452, thanks!
-Chris
    
    
More information about the cfe-commits
mailing list