public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a;
@ 2005-02-22 6:22 kazu at cs dot umass dot edu
2005-02-22 6:26 ` [Bug tree-optimization/20130] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-02-22 6:22 UTC (permalink / raw)
To: gcc-bugs
Consider
int
foo (int a)
{
return a * -1 - 1;
}
CSE folds a * -1 into -a;
combine folds -a - 1 into ~a;
Obviously, we should do both of these in tree.
--
Summary: Fold a * -1 - 1 into ~a;
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: missed-optimization, TREE
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at cs dot umass dot edu
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19721
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
@ 2005-02-22 6:26 ` pinskia at gcc dot gnu dot org
2005-02-22 6:26 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22 6:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-21 23:35 -------
Confirmed.
PR 15784 is the PR about -a - 1 turning into ~a.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |15784
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-02-21 23:35:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
2005-02-22 6:26 ` [Bug tree-optimization/20130] " pinskia at gcc dot gnu dot org
@ 2005-02-22 6:26 ` pinskia at gcc dot gnu dot org
2005-03-04 2:55 ` phython at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22 6:26 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |19986
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
2005-02-22 6:26 ` [Bug tree-optimization/20130] " pinskia at gcc dot gnu dot org
2005-02-22 6:26 ` pinskia at gcc dot gnu dot org
@ 2005-03-04 2:55 ` phython at gcc dot gnu dot org
2005-03-04 6:26 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-03-04 2:55 UTC (permalink / raw)
To: gcc-bugs
--
Bug 20130 depends on bug 15784, which changed state.
Bug 15784 Summary: fold misses binary optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15784
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
` (2 preceding siblings ...)
2005-03-04 2:55 ` phython at gcc dot gnu dot org
@ 2005-03-04 6:26 ` pinskia at gcc dot gnu dot org
2005-03-06 21:16 ` phython at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-04 6:26 UTC (permalink / raw)
To: gcc-bugs
--
Bug 20130 depends on bug 15784, which changed state.
Bug 15784 Summary: fold misses binary optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15784
What |Old Value |New Value
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
` (3 preceding siblings ...)
2005-03-04 6:26 ` pinskia at gcc dot gnu dot org
@ 2005-03-06 21:16 ` phython at gcc dot gnu dot org
2005-03-11 3:19 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-03-06 21:16 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |phython at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-02-21 23:35:04 |2005-03-06 21:16:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
` (4 preceding siblings ...)
2005-03-06 21:16 ` phython at gcc dot gnu dot org
@ 2005-03-11 3:19 ` cvs-commit at gcc dot gnu dot org
2005-03-11 3:20 ` phython at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-11 3:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-11 03:19 -------
Subject: Bug 20130
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: phython@gcc.gnu.org 2005-03-11 03:18:56
Modified files:
gcc : ChangeLog fold-const.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr20130-1.c
Log message:
2005-03-11 James A. Morrison <phython@gcc.gnu.org>
PR tree-optimization/20130
* fold-const.c (fold): Fold x * -1 into -x.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7781&r2=2.7782
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.539&r2=1.540
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5144&r2=1.5145
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr20130-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
` (5 preceding siblings ...)
2005-03-11 3:19 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-11 3:20 ` phython at gcc dot gnu dot org
2005-03-11 5:04 ` phython at gcc dot gnu dot org
2005-03-11 5:04 ` phython at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-03-11 3:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2005-03-11 03:20 -------
This should be closed when 15784 goes back into the tree.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
` (6 preceding siblings ...)
2005-03-11 3:20 ` phython at gcc dot gnu dot org
@ 2005-03-11 5:04 ` phython at gcc dot gnu dot org
2005-03-11 5:04 ` phython at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-03-11 5:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2005-03-11 05:03 -------
fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/20130] Fold a * -1 - 1 into ~a;
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
` (7 preceding siblings ...)
2005-03-11 5:04 ` phython at gcc dot gnu dot org
@ 2005-03-11 5:04 ` phython at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-03-11 5:04 UTC (permalink / raw)
To: gcc-bugs
--
Bug 20130 depends on bug 15784, which changed state.
Bug 15784 Summary: fold misses binary optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15784
What |Old Value |New Value
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20130
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-03-11 5:04 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 6:22 [Bug tree-optimization/20130] New: Fold a * -1 - 1 into ~a; kazu at cs dot umass dot edu
2005-02-22 6:26 ` [Bug tree-optimization/20130] " pinskia at gcc dot gnu dot org
2005-02-22 6:26 ` pinskia at gcc dot gnu dot org
2005-03-04 2:55 ` phython at gcc dot gnu dot org
2005-03-04 6:26 ` pinskia at gcc dot gnu dot org
2005-03-06 21:16 ` phython at gcc dot gnu dot org
2005-03-11 3:19 ` cvs-commit at gcc dot gnu dot org
2005-03-11 3:20 ` phython at gcc dot gnu dot org
2005-03-11 5:04 ` phython at gcc dot gnu dot org
2005-03-11 5:04 ` phython 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).