This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49203] missed-optimization: useless expressions not moved out of loop
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 28 May 2011 12:57:21 +0000
- Subject: [Bug tree-optimization/49203] missed-optimization: useless expressions not moved out of loop
- Auto-submitted: auto-generated
- References: <bug-49203-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49203
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-28 12:57:19 UTC ---
(In reply to comment #1)
> Looks like LIM is only able to hoist invariants rather than push down
> invariants. It can push down invariant stores though.
Indeed. code-sinking (in tree-ssa-sink.c) would be able to fix this
but it is run before loop store motion.