This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/43182] GCC does not pull out a[0] from loop that changes a[i] for i:[1,n]



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]