This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/44462] Redundant looping pure functions whose return value is dead are not optimized out
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2010 10:29:56 -0000
- Subject: [Bug tree-optimization/44462] Redundant looping pure functions whose return value is dead are not optimized out
- References: <bug-44462-176@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from hubicka at ucw dot cz 2010-06-09 10:29 -------
Subject: Re: Redundant looping pure functions
whose return value is dead are not optimized out
> > >Why do we remove register LHS in DCE again?
> >
> > Because it reduces the amount of garbage produced by expand :).
>
> Which means the expander could drop it ...
This won't save us from not optimizing out functions returning void. They can
be looping pure too (most of sanity checks are)
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44462