This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/31873] missed optimization: we don't move "invariant casts" out of loops
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 May 2007 10:10:10 -0000
- Subject: [Bug tree-optimization/31873] missed optimization: we don't move "invariant casts" out of loops
- References: <bug-31873-8585@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rakdver at gcc dot gnu dot org 2007-05-09 11:10 -------
(In reply to comment #1)
> Does it do it if you specify --param lim-expensive=1? Then it's just a cost
> issue.
no, lim won't do this transformation. Store motion could probably be persuaded
to do it by a few changes, although I am not quite sure what is the benefit of
moving no-op casts out of the loop.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31873