public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30951] New: Does not fold x + CST == x and x + CST != x
@ 2007-02-24 19:44 rguenth at gcc dot gnu dot org
2007-02-24 19:56 ` [Bug middle-end/30951] " rguenth at gcc dot gnu dot org
2007-02-24 19:56 ` rguenth at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-24 19:44 UTC (permalink / raw)
To: gcc-bugs
int foo (int x)
{
return x + 5 == x;
}
(mine)
--
Summary: Does not fold x + CST == x and x + CST != x
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: middle-end
AssignedTo: rguenth at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30951
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/30951] Does not fold x + CST == x and x + CST != x
2007-02-24 19:44 [Bug middle-end/30951] New: Does not fold x + CST == x and x + CST != x rguenth at gcc dot gnu dot org
@ 2007-02-24 19:56 ` rguenth at gcc dot gnu dot org
2007-02-24 19:56 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-24 19:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-02-24 19:56 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30951
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/30951] Does not fold x + CST == x and x + CST != x
2007-02-24 19:44 [Bug middle-end/30951] New: Does not fold x + CST == x and x + CST != x rguenth at gcc dot gnu dot org
2007-02-24 19:56 ` [Bug middle-end/30951] " rguenth at gcc dot gnu dot org
@ 2007-02-24 19:56 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-24 19:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-02-24 19:55 -------
Subject: Bug 30951
Author: rguenth
Date: Sat Feb 24 19:55:47 2007
New Revision: 122295
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122295
Log:
2007-02-24 Richard Guenther <rguenther@suse.de>
PR middle-end/30951
* fold-const.c (fold_binary): Fold x +- CST op x for
EQ_EXPR and NE_EXPR.
* gcc.dg/pr30951.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/pr30951.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30951
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-24 19:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-24 19:44 [Bug middle-end/30951] New: Does not fold x + CST == x and x + CST != x rguenth at gcc dot gnu dot org
2007-02-24 19:56 ` [Bug middle-end/30951] " rguenth at gcc dot gnu dot org
2007-02-24 19:56 ` rguenth 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).