This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/43182] GCC does not pull out a[0] from loop that changes a[i] for i:[1,n]
- From: "changpeng dot fang at amd dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2010 19:06:41 -0000
- Subject: [Bug middle-end/43182] GCC does not pull out a[0] from loop that changes a[i] for i:[1,n]
- References: <bug-43182-18740@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from changpeng dot fang at amd dot com 2010-02-26 19:06 -------
>
> Actually it is a totally different case. Please file a new bug with that case;
> though there might already be a bug about that one.
>
I could not see the difference even though j is not a compile-time constant.
(it
is an invariant to the innermost loop). I can say:
GCC does not pull out a[j] from loop that changes a[i] for i:[j+1,n]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43182