This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement.
- 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: 27 Mar 2005 19:41:18 -0000
- Subject: [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Consider
int
foo (int a)
{
if (a == 0)
if (a == 0)
return 1;
return 0;
}
Note that the second "if" statement is redundant.
--
Summary: VRP does not get rid of a redundant "if" statement.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: kazu at cs dot umass dot edu
ReportedBy: kazu at cs dot umass dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20657