public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug optimization/15346] New: [tree-ssa] combine two successive divisions @ 2004-05-09 19:23 kazu at cs dot umass dot edu 2004-05-09 19:24 ` [Bug optimization/15346] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 10+ messages in thread From: kazu at cs dot umass dot edu @ 2004-05-09 19:23 UTC (permalink / raw) To: gcc-bugs int foo (int a) { int tem = a / 5; return tem / 3; } Note that if the expression is written without tem like a / 5 / 3, then fold() can generate a / 15. -- Summary: [tree-ssa] combine two successive divisions Product: gcc Version: tree-ssa Status: UNCONFIRMED Keywords: pessimizes-code Severity: enhancement Priority: P2 Component: 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 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/15346] [tree-ssa] combine two successive divisions 2004-05-09 19:23 [Bug optimization/15346] New: [tree-ssa] combine two successive divisions kazu at cs dot umass dot edu @ 2004-05-09 19:24 ` pinskia at gcc dot gnu dot org 2004-05-17 17:50 ` [Bug tree-optimization/15346] " pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-05-09 19:24 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-09 19:24 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-05-09 19:24:42 date| | Target Milestone|--- |tree-ssa http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions 2004-05-09 19:23 [Bug optimization/15346] New: [tree-ssa] combine two successive divisions kazu at cs dot umass dot edu 2004-05-09 19:24 ` [Bug optimization/15346] " pinskia at gcc dot gnu dot org @ 2004-05-17 17:50 ` pinskia at gcc dot gnu dot org 2004-05-27 5:24 ` pinskia at gcc dot gnu dot org 2004-06-21 5:14 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-05-17 17:50 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-17 01:53 ------- Will be fixed when PR 15459 is fixed (I have a slight patch for PR 15459 which I can give to you if you want to try it). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions 2004-05-09 19:23 [Bug optimization/15346] New: [tree-ssa] combine two successive divisions kazu at cs dot umass dot edu 2004-05-09 19:24 ` [Bug optimization/15346] " pinskia at gcc dot gnu dot org 2004-05-17 17:50 ` [Bug tree-optimization/15346] " pinskia at gcc dot gnu dot org @ 2004-05-27 5:24 ` pinskia at gcc dot gnu dot org 2004-06-21 5:14 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-05-27 5:24 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-26 14:32 ------- Mine. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Target Milestone|3.5.0 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions 2004-05-09 19:23 [Bug optimization/15346] New: [tree-ssa] combine two successive divisions kazu at cs dot umass dot edu ` (2 preceding siblings ...) 2004-05-27 5:24 ` pinskia at gcc dot gnu dot org @ 2004-06-21 5:14 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-06-21 5:14 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-21 05:13 ------- Will be submitting the tree combiner tonight. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20040509192300.15346.kazu@gcc.gnu.org>]
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions [not found] <20040509192300.15346.kazu@gcc.gnu.org> @ 2005-07-12 21:28 ` pinskia at gcc dot gnu dot org 0 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-07-12 21:28 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12 21:27 ------- It might be a while for me to rewrite the tree combiner so unassigning for now. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED |NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <bug-15346-5009@http.gcc.gnu.org/bugzilla/>]
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions [not found] <bug-15346-5009@http.gcc.gnu.org/bugzilla/> @ 2008-04-29 10:05 ` rguenth at gcc dot gnu dot org 0 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu dot org @ 2008-04-29 10:05 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from rguenth at gcc dot gnu dot org 2008-04-29 10:05 ------- tree-ssa-reassoc can/should be extended to do this. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-05-05 08:50:24 |2008-04-29 10:05:04 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <bug-15346-4@http.gcc.gnu.org/bugzilla/>]
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions [not found] <bug-15346-4@http.gcc.gnu.org/bugzilla/> @ 2014-10-31 4:01 ` pinskia at gcc dot gnu.org 2014-12-01 13:13 ` rguenth at gcc dot gnu.org 2014-12-01 13:14 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2014-10-31 4:01 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 Bug 15346 depends on bug 15459, which changed state. Bug 15459 Summary: [meta-bug] there should be a tree combiner like the rtl one https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15459 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions [not found] <bug-15346-4@http.gcc.gnu.org/bugzilla/> 2014-10-31 4:01 ` pinskia at gcc dot gnu.org @ 2014-12-01 13:13 ` rguenth at gcc dot gnu.org 2014-12-01 13:14 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-12-01 13:13 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/15346] [tree-ssa] combine two successive divisions [not found] <bug-15346-4@http.gcc.gnu.org/bugzilla/> 2014-10-31 4:01 ` pinskia at gcc dot gnu.org 2014-12-01 13:13 ` rguenth at gcc dot gnu.org @ 2014-12-01 13:14 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-12-01 13:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15346 --- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Dec 1 13:13:28 2014 New Revision: 218211 URL: https://gcc.gnu.org/viewcvs?rev=218211&root=gcc&view=rev Log: 2014-12-01 Richard Biener <rguenther@suse.de> PR tree-optimization/15346 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter, add -Wno-unused-but-set-variable. * match.pd: Combine two successive divisions. * gcc.dg/tree-ssa/forwprop-32.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/forwprop-32.c Modified: trunk/gcc/ChangeLog trunk/gcc/Makefile.in trunk/gcc/match.pd trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-12-01 13:14 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-05-09 19:23 [Bug optimization/15346] New: [tree-ssa] combine two successive divisions kazu at cs dot umass dot edu 2004-05-09 19:24 ` [Bug optimization/15346] " pinskia at gcc dot gnu dot org 2004-05-17 17:50 ` [Bug tree-optimization/15346] " pinskia at gcc dot gnu dot org 2004-05-27 5:24 ` pinskia at gcc dot gnu dot org 2004-06-21 5:14 ` pinskia at gcc dot gnu dot org [not found] <20040509192300.15346.kazu@gcc.gnu.org> 2005-07-12 21:28 ` pinskia at gcc dot gnu dot org [not found] <bug-15346-5009@http.gcc.gnu.org/bugzilla/> 2008-04-29 10:05 ` rguenth at gcc dot gnu dot org [not found] <bug-15346-4@http.gcc.gnu.org/bugzilla/> 2014-10-31 4:01 ` pinskia at gcc dot gnu.org 2014-12-01 13:13 ` rguenth at gcc dot gnu.org 2014-12-01 13:14 ` rguenth 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).