public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement.
@ 2005-03-27 19:41 kazu at cs dot umass dot edu
2005-03-27 19:41 ` [Bug tree-optimization/20657] [tcb] " kazu at cs dot umass dot edu
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-03-27 19:41 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/20657] [tcb] VRP does not get rid of a redundant "if" statement.
2005-03-27 19:41 [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement kazu at cs dot umass dot edu
@ 2005-03-27 19:41 ` kazu at cs dot umass dot edu
2005-03-27 19:42 ` kazu at cs dot umass dot edu
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-03-27 19:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|VRP does not get rid of a |[tcb] VRP does not get rid
|redundant "if" statement. |of a redundant "if"
| |statement.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20657
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/20657] [tcb] VRP does not get rid of a redundant "if" statement.
2005-03-27 19:41 [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement kazu at cs dot umass dot edu
2005-03-27 19:41 ` [Bug tree-optimization/20657] [tcb] " kazu at cs dot umass dot edu
@ 2005-03-27 19:42 ` kazu at cs dot umass dot edu
2005-03-27 22:35 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-03-27 19:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2005-03-27 19:42 -------
Created an attachment (id=8462)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8462&action=view)
Patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20657
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/20657] [tcb] VRP does not get rid of a redundant "if" statement.
2005-03-27 19:41 [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement kazu at cs dot umass dot edu
2005-03-27 19:41 ` [Bug tree-optimization/20657] [tcb] " kazu at cs dot umass dot edu
2005-03-27 19:42 ` kazu at cs dot umass dot edu
@ 2005-03-27 22:35 ` pinskia at gcc dot gnu dot org
2005-04-14 13:08 ` kazu at cs dot umass dot edu
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-27 22:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-27 22:35 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-03-27 22:35:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20657
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/20657] [tcb] VRP does not get rid of a redundant "if" statement.
2005-03-27 19:41 [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement kazu at cs dot umass dot edu
` (2 preceding siblings ...)
2005-03-27 22:35 ` pinskia at gcc dot gnu dot org
@ 2005-04-14 13:08 ` kazu at cs dot umass dot edu
2005-04-14 13:36 ` kazu at cs dot umass dot edu
2005-04-14 13:37 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-14 13:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2005-04-14 13:07 -------
Patch posted:
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01577.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20657
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/20657] [tcb] VRP does not get rid of a redundant "if" statement.
2005-03-27 19:41 [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement kazu at cs dot umass dot edu
` (3 preceding siblings ...)
2005-04-14 13:08 ` kazu at cs dot umass dot edu
@ 2005-04-14 13:36 ` kazu at cs dot umass dot edu
2005-04-14 13:37 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-14 13:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2005-04-14 13:35 -------
Just checked in a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20657
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/20657] [tcb] VRP does not get rid of a redundant "if" statement.
2005-03-27 19:41 [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement kazu at cs dot umass dot edu
` (4 preceding siblings ...)
2005-04-14 13:36 ` kazu at cs dot umass dot edu
@ 2005-04-14 13:37 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-14 13:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-14 13:36 -------
Subject: Bug 20657
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: kazu@gcc.gnu.org 2005-04-14 13:34:59
Modified files:
gcc : ChangeLog tree-vrp.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg/tree-ssa: pr20657.c
Log message:
gcc/
PR tree-optimization/20657
* tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
create an appropriate range from it.
testsuite/
PR tree-optimization/20657
* gcc.dg/tree-ssa/pr20657.c: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8286&r2=2.8287
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vrp.c.diff?cvsroot=gcc&r1=2.6&r2=2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5346&r2=1.5347
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr20657.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20657
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-04-14 13:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-27 19:41 [Bug tree-optimization/20657] New: VRP does not get rid of a redundant "if" statement kazu at cs dot umass dot edu
2005-03-27 19:41 ` [Bug tree-optimization/20657] [tcb] " kazu at cs dot umass dot edu
2005-03-27 19:42 ` kazu at cs dot umass dot edu
2005-03-27 22:35 ` pinskia at gcc dot gnu dot org
2005-04-14 13:08 ` kazu at cs dot umass dot edu
2005-04-14 13:36 ` kazu at cs dot umass dot edu
2005-04-14 13:37 ` cvs-commit at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).