This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/14814] no folding back to ARRAY_REF for COMPONENT_REF
- 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: 23 Aug 2004 03:21:36 -0000
- Subject: [Bug tree-optimization/14814] no folding back to ARRAY_REF for COMPONENT_REF
- References: <20040401225801.14814.dalej@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-23 03:21 -------
Here is what the two functions have at .t34.dom2:
T.1_3 = &r_1->e;
T.2_4 = (double *)T.1_3;
T.4_5 = T.2_4 + 8B;
T.3_7 = *T.4_5;
--------
T.5_2 = r_1->e[1];
if we could fold the first one into the second, we could fix this bug as we then prograte the constant
and remove the dead code as we know longer need the struct living in memory at all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14814