public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/19105] fold does not spot anti-range test
2004-12-21 12:22 [Bug tree-optimization/19105] New: fold does not spot anti-range test nathan at gcc dot gnu dot org
@ 2004-12-21 12:22 ` nathan at gcc dot gnu dot org
2004-12-21 12:23 ` nathan at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-21 12:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-12-21 12:22 -------
Created an attachment (id=7793)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7793&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/19105] New: fold does not spot anti-range test
@ 2004-12-21 12:22 nathan at gcc dot gnu dot org
2004-12-21 12:22 ` [Bug tree-optimization/19105] " nathan at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-21 12:22 UTC (permalink / raw)
To: gcc-bugs
The attached test case shows two equivalent functions, unfortunately the
first is not optimized as best as the second. Notice the only different is the
placement of some superfluous parentheses.
Death to fold-const!
--
Summary: fold does not spot anti-range test
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nathan at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/19105] fold does not spot anti-range test
2004-12-21 12:22 [Bug tree-optimization/19105] New: fold does not spot anti-range test nathan at gcc dot gnu dot org
2004-12-21 12:22 ` [Bug tree-optimization/19105] " nathan at gcc dot gnu dot org
@ 2004-12-21 12:23 ` nathan at gcc dot gnu dot org
2004-12-21 15:52 ` pinskia at gcc dot gnu dot org
2005-07-26 13:21 ` dberlin at gcc dot gnu dot org
3 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-21 12:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-12-21 12:23 -------
Created an attachment (id=7794)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7794&action=view)
assembly produced at -O2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/19105] fold does not spot anti-range test
2004-12-21 12:22 [Bug tree-optimization/19105] New: fold does not spot anti-range test nathan at gcc dot gnu dot org
2004-12-21 12:22 ` [Bug tree-optimization/19105] " nathan at gcc dot gnu dot org
2004-12-21 12:23 ` nathan at gcc dot gnu dot org
@ 2004-12-21 15:52 ` pinskia at gcc dot gnu dot org
2005-07-26 13:21 ` dberlin at gcc dot gnu dot org
3 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-21 15:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-21 15:52 -------
Fold unlike simplify_rtx does not do as re-association (or really as much as re-association).
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |missed-optimization
Last reconfirmed|0000-00-00 00:00:00 |2004-12-21 15:52:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/19105] fold does not spot anti-range test
2004-12-21 12:22 [Bug tree-optimization/19105] New: fold does not spot anti-range test nathan at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-12-21 15:52 ` pinskia at gcc dot gnu dot org
@ 2005-07-26 13:21 ` dberlin at gcc dot gnu dot org
3 siblings, 0 replies; 8+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-07-26 13:21 UTC (permalink / raw)
To: gcc-bugs
--
Bug 19105 depends on bug 21445, which changed state.
Bug 21445 Summary: [meta-bug] we need a reassociate pass
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21445
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/19105] fold does not spot anti-range test
[not found] <bug-19105-4@http.gcc.gnu.org/bugzilla/>
2012-01-20 3:47 ` pinskia at gcc dot gnu.org
2012-10-31 8:46 ` jakub at gcc dot gnu.org
@ 2012-10-31 8:53 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-10-31 8:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.8.0
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-31 08:52:45 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/19105] fold does not spot anti-range test
[not found] <bug-19105-4@http.gcc.gnu.org/bugzilla/>
2012-01-20 3:47 ` pinskia at gcc dot gnu.org
@ 2012-10-31 8:46 ` jakub at gcc dot gnu.org
2012-10-31 8:53 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-10-31 8:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-31 08:45:38 UTC ---
Author: jakub
Date: Wed Oct 31 08:45:27 2012
New Revision: 193028
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193028
Log:
PR tree-optimization/19105
PR tree-optimization/21643
PR tree-optimization/46309
* tree-ssa-reassoc.c (init_range_entry): Add STMT argument
and use it if EXP is NULL.
(update_range_test): Handle OPCODE equal to ERROR_MARK
and oe->op NULL.
(optimize_range_tests): Likewise.
(final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
maybe_optimize_range_tests): New functions.
(reassociate_bb): Call maybe_optimize_range_tests if last
stmt of bb is GIMPLE_COND that hasn't been visited yet.
* gcc.dg/pr19105.c: New test.
* gcc.dg/pr21643.c: New test.
* gcc.dg/pr46309-2.c: New test.
* gcc.c-torture/execute/pr46309.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr46309.c
trunk/gcc/testsuite/gcc.dg/pr19105.c
trunk/gcc/testsuite/gcc.dg/pr21643.c
trunk/gcc/testsuite/gcc.dg/pr46309-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-reassoc.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/19105] fold does not spot anti-range test
[not found] <bug-19105-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-20 3:47 ` pinskia at gcc dot gnu.org
2012-10-31 8:46 ` jakub at gcc dot gnu.org
2012-10-31 8:53 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-20 3:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19105
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-12-21 03:57:03 |2012-01-19
CC|gcc-bugs at gcc dot gnu.org |
Blocks| |46309
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-20 03:15:49 UTC ---
Related to PR 46309.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-10-31 8:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-21 12:22 [Bug tree-optimization/19105] New: fold does not spot anti-range test nathan at gcc dot gnu dot org
2004-12-21 12:22 ` [Bug tree-optimization/19105] " nathan at gcc dot gnu dot org
2004-12-21 12:23 ` nathan at gcc dot gnu dot org
2004-12-21 15:52 ` pinskia at gcc dot gnu dot org
2005-07-26 13:21 ` dberlin at gcc dot gnu dot org
[not found] <bug-19105-4@http.gcc.gnu.org/bugzilla/>
2012-01-20 3:47 ` pinskia at gcc dot gnu.org
2012-10-31 8:46 ` jakub at gcc dot gnu.org
2012-10-31 8:53 ` jakub at gcc dot gnu.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).