This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18431] Code for arrays and pointers are not the same
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2004 11:24:20 -0000
- Subject: [Bug tree-optimization/18431] Code for arrays and pointers are not the same
- References: <20041111180852.18431.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rakdver at gcc dot gnu dot org 2004-11-12 11:24 -------
The problem seems to be that licm does not move load of q from the loop. Ivopts
then do not recognize q + 2*i as induction variable, and thus they are
optimizing it not like an address of memory reference, but just like a
computation of 2*i, for which it obviously does not make sense to perform
strength reduction.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18431