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
[parent not found: <20040509192300.15346.kazu@gcc.gnu.org>]
[parent not found: <bug-15346-5009@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-15346-4@http.gcc.gnu.org/bugzilla/>]

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).