This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/10817] gcc does not optimize result=0;if(t!=0)result=t; to result=t;
- 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: 15 Jul 2003 06:08:09 -0000
- Subject: [Bug optimization/10817] gcc does not optimize result=0;if(t!=0)result=t; to result=t;
- References: <20030516141601.10817.pinskia@physics.uc.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10817
kazu at cs dot umass dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kazu at cs dot umass dot edu
------- Additional Comments From kazu at cs dot umass dot edu 2003-07-15 06:08 -------
I created a very simple patch for the if conversion pass to optimize
this for most, if not all, targets. The problem is that the
optimization doesn't trigger in several hundreds real world source
files that I have.