------- Comment #12 from rguenther at suse dot de 2008-09-18 08:23 ------- Subject: Re: [4.3/4.4 Regression] vector can cause to create an extra variable, DECL_GIMPLE_REG_P not recomputed
On Wed, 17 Sep 2008, pinskia at gcc dot gnu dot org wrote: > ------- Comment #10 from pinskia at gcc dot gnu dot org 2008-09-17 22:50 > ------- > Here is a testcase where we were missing an optimization at the tree level > because of DECL_GIMPLE_REG_P: > #define vector __attribute__(( vector_size(16) )) > > float f(vector float a, int b, vector float c) > { > vector float dd = c*a; > a = (vector float){0,0,0,0}; > c = (vector float){0,0,0,0}; > { > float d = ((float*)&a)[0]; > float d1 = ((float*)&c)[0]; > return d*d1; > } > } I wonder why we not just can add both, TREE_ADDRESSABLE and DECL_GIMPLE_REG_P ... Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30930