This is the mail archive of the gcc@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]

Re: [tree-ssa] Write to global memory not hoisted out of loop


Hello,

> > > Writes to global memory are not hoisted out of a computation loop.
> >
> > Try this with the LNO branch, iirc it can do this.
> 
> Not as of gcc (GCC) 3.5-tree-ssa-lno 20040430 (merged 20040425) (-O2
> -ftree-loop-optimize -ffast-math), neither with static nor without.

tree-ssa aliasing probably does not take restricted pointers into
account, since it decides that all the accesses in the loop may alias.
Consequently none of the optimizations that could cause the store
to be hoisted out detects the possibility.

Zdenek


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