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: 18 Sep 2008 01:00:13 -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 #11 from pinskia at gcc dot gnu dot org 2008-09-18 01:00 -------
Here is a testcase which shows a missed optimization in general (on both the
tree level and the RTL one) for x86 with SSE2:
#define vector __attribute((vector_size(16) ))
vector float a;
float f(float b)
{
vector float c = {0, 0, 0, 0};
vector float d = {0, 0, 0, 0};
d += c;
return ((float*)&c)[2];
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30930