public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/19104] New: in range test not noticed @ 2004-12-21 11:42 nathan at gcc dot gnu dot org 2004-12-21 11:43 ` [Bug tree-optimization/19104] " nathan at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: nathan at gcc dot gnu dot org @ 2004-12-21 11:42 UTC (permalink / raw) To: gcc-bugs The attached test case contains two equivalent functions. The second one produces better code, because it has been manually CSE'd. The problem is that fold-const is doing the conversion of 'a ==V1 || a == V2' (V2 == V1 + 1) into '(a - V1) <= (V2 - V1)', but that can't be done until we spot that both RHS of the && are identical. Death to fold-const! -- Summary: in range test not noticed 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=19104 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/19104] in range test not noticed 2004-12-21 11:42 [Bug tree-optimization/19104] New: in range test not noticed nathan at gcc dot gnu dot org @ 2004-12-21 11:43 ` nathan at gcc dot gnu dot org 2004-12-21 11:44 ` nathan at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: nathan at gcc dot gnu dot org @ 2004-12-21 11:43 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From nathan at gcc dot gnu dot org 2004-12-21 11:43 ------- Created an attachment (id=7791) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7791&action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19104 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/19104] in range test not noticed 2004-12-21 11:42 [Bug tree-optimization/19104] New: in range test not noticed nathan at gcc dot gnu dot org 2004-12-21 11:43 ` [Bug tree-optimization/19104] " nathan at gcc dot gnu dot org @ 2004-12-21 11:44 ` nathan at gcc dot gnu dot org 2004-12-21 15:55 ` pinskia at gcc dot gnu dot org 2005-07-26 13:14 ` dberlin at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: nathan at gcc dot gnu dot org @ 2004-12-21 11:44 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From nathan at gcc dot gnu dot org 2004-12-21 11:43 ------- Created an attachment (id=7792) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7792&action=view) assembly at -O2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19104 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/19104] in range test not noticed 2004-12-21 11:42 [Bug tree-optimization/19104] New: in range test not noticed nathan at gcc dot gnu dot org 2004-12-21 11:43 ` [Bug tree-optimization/19104] " nathan at gcc dot gnu dot org 2004-12-21 11:44 ` nathan at gcc dot gnu dot org @ 2004-12-21 15:55 ` pinskia at gcc dot gnu dot org 2005-07-26 13:14 ` dberlin at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-12-21 15:55 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-21 15:54 ------- Again (this is really the same problem as 19105): Fold unlike simplify_rtx does not do as re-association (or really as much as re-association). Oh, forgot to say why, because we call fold a lot more than simplify_rtx. -- 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:54:55 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19104 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/19104] in range test not noticed 2004-12-21 11:42 [Bug tree-optimization/19104] New: in range test not noticed nathan at gcc dot gnu dot org ` (2 preceding siblings ...) 2004-12-21 15:55 ` pinskia at gcc dot gnu dot org @ 2005-07-26 13:14 ` dberlin at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: dberlin at gcc dot gnu dot org @ 2005-07-26 13:14 UTC (permalink / raw) To: gcc-bugs -- Bug 19104 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=19104 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-07-26 13:14 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-12-21 11:42 [Bug tree-optimization/19104] New: in range test not noticed nathan at gcc dot gnu dot org 2004-12-21 11:43 ` [Bug tree-optimization/19104] " nathan at gcc dot gnu dot org 2004-12-21 11:44 ` nathan at gcc dot gnu dot org 2004-12-21 15:55 ` pinskia at gcc dot gnu dot org 2005-07-26 13:14 ` dberlin 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).