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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2008 22:50: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 #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;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30930