This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30930] [4.3/4.4 Regression] vector can cause to create an extra variable, DECL_GIMPLE_REG_P not recomputed
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2008 08:23:01 -0000
- Subject: [Bug tree-optimization/30930] [4.3/4.4 Regression] vector can cause to create an extra variable, DECL_GIMPLE_REG_P not recomputed
- References: <bug-30930-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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