public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23294] New: fold does not fold a*2-a to a
@ 2005-08-09  3:06 pinskia at gcc dot gnu dot org
  2005-08-10  0:45 ` [Bug middle-end/23294] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-09  3:06 UTC (permalink / raw)
  To: gcc-bugs

I noticed this while running a profiledbootstrap and looking through simplify-rtx.c.
Take the following function:
int f(int a)
{
  return a*2-a;
}

We don't optimizate a*2-a to just a on the tree level but do in combine, we do.

-- 
           Summary: fold does not fold a*2-a to a
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: enhancement
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19986
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23294


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-23294-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-11-19 11:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09  3:06 [Bug middle-end/23294] New: fold does not fold a*2-a to a pinskia at gcc dot gnu dot org
2005-08-10  0:45 ` [Bug middle-end/23294] " pinskia at gcc dot gnu dot org
2005-08-10  0:49 ` [Bug middle-end/23294] fold does not fold a*C+a to a*(C+1) or a*C-a to a*(C-1) pinskia at gcc dot gnu dot org
2005-08-10  9:24 ` rguenth at gcc dot gnu dot org
2005-08-10 10:27 ` pinskia at gcc dot gnu dot org
2005-08-26  9:35 ` rguenth at gcc dot gnu dot org
2005-08-26 13:57 ` rguenth at gcc dot gnu dot org
     [not found] <bug-23294-6528@http.gcc.gnu.org/bugzilla/>
2005-11-19 11:29 ` rguenth at gcc dot gnu dot org
2005-11-19 11:31 ` rguenth 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).