This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21694] Missed forwprop opportunity into COND_EXPR
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2005 17:01:25 -0000
- Subject: [Bug tree-optimization/21694] Missed forwprop opportunity into COND_EXPR
- References: <20050521075655.21694.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kazu at cs dot umass dot edu 2005-05-21 17:01 -------
(In reply to comment #2)
> There is a reason why forwprop does not do this, the SSA_NAME is used twice.
If we run forwprop
> before FRE, it will catch it in this
We are interested in the number of immediate uses of cond_4, not D.1240_3.
Since cond_4 is used only once, this optimization fits in the framework of
forwprop quite nicely.
I've got a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |kazu at cs dot umass dot edu
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21694