------- Comment #3 from rguenth at gcc dot gnu dot org 2009-08-11 08:35 ------- Well, the issue is that even LIM doesn't move the load because loop header copying is not run at -Os which usually makes loop analysis hard. At -O2 -fno-tree-pre it works, but at -Os it doesn't.
We should be better in estimating the loop header copy cost. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41026