This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded
- From: "stevenb at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2004 09:38:58 -0000
- Subject: [Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded
- References: <20040403234930.14841.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From stevenb at suse dot de 2004-08-31 09:38 -------
Subject: Re: [tree-ssa] const_array[CST] is not folded
On Tuesday 31 August 2004 04:06, pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-31
> 02:06 ------- Because you cannot do it in fold because we get the
> expression a[2] which is part of the bigger expression &a[2] which means
> that we cannot fold the first expression.
Exactly. CCP is the right place for this.
The expr.c hack can probably be removed when the patch is in, if
somebody is interested.
Gr.
Steven
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14841