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

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Fri Apr 30 22:25:00 GMT 2004


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



More information about the Gcc mailing list