public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/31360]  New: [4.3 Regression] rtl loop invariant is broken
Date: Mon, 26 Mar 2007 05:43:00 -0000	[thread overview]
Message-ID: <bug-31360-6528@http.gcc.gnu.org/bugzilla/> (raw)

Testcase:
void f(int *a)
{
  int i;
  for (i = 0;i<100;i++)
    a[i] = 0;
}


-----------cut-------------
we get:
_f:
        li r0,0
        li r2,4
        stw r0,0(r3)
        li r0,99
        mtctr r0
L2:
        li r0,0
        stwx r0,r2,r3
        addi r2,r2,4
        bdnz L2
        blr


the "li r0,0" should be moved out of the loop but is not.


-- 
           Summary: [4.3 Regression] rtl loop invariant is broken
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-darwin


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


             reply	other threads:[~2007-03-26  5:43 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26  5:43 pinskia at gcc dot gnu dot org [this message]
2007-03-26  5:48 ` [Bug rtl-optimization/31360] " pinskia at gcc dot gnu dot org
2007-03-26  9:15 ` rguenth at gcc dot gnu dot org
2007-03-26 15:51 ` pinskia at gcc dot gnu dot org
2007-03-26 17:01 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2007-03-26 17:09 ` pinskia at gcc dot gnu dot org
2007-03-26 17:18 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2007-03-26 21:12 ` [Bug rtl-optimization/31360] [4.2/4.3 " pinskia at gcc dot gnu dot org
2007-03-26 21:14 ` steven at gcc dot gnu dot org
2007-03-26 21:17 ` pinskia at gcc dot gnu dot org
2007-03-26 21:33 ` steven at gcc dot gnu dot org
2007-03-26 21:36 ` steven at gcc dot gnu dot org
2007-03-26 21:37 ` pinskia at gcc dot gnu dot org
2007-03-26 21:43 ` steven at gcc dot gnu dot org
2007-03-26 21:44 ` steven at gcc dot gnu dot org
2007-03-26 22:05 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2007-04-15 22:10 ` mmitchel at gcc dot gnu dot org
2007-04-16 16:53 ` rakdver at gcc dot gnu dot org
2007-04-17 16:42 ` rakdver at gcc dot gnu dot org
2007-04-17 21:13 ` [Bug rtl-optimization/31360] [4.2 " steven at gcc dot gnu dot org
2007-04-24 21:42 ` mmitchel at gcc dot gnu dot org
2007-04-24 21:44 ` pinskia at gcc dot gnu dot org
2007-05-05 23:28 ` rearnsha at gcc dot gnu dot org
2007-05-06 10:10 ` steven at gcc dot gnu dot org
2007-05-06 14:35 ` rearnsha at gcc dot gnu dot org
2007-05-06 17:10 ` steven at gcc dot gnu dot org
2007-05-06 17:14 ` pinskia at gcc dot gnu dot org
2007-05-14 21:26 ` mmitchel at gcc dot gnu dot org
2007-06-23 10:16 ` [Bug rtl-optimization/31360] [4.2 Regression] RTL loop invariant is not aggressive enough ebotcazou at gcc dot gnu dot org
2007-06-23 10:23 ` rguenth at gcc dot gnu dot org
2007-06-23 20:45 ` mmitchel at gcc dot gnu dot org
2007-06-25  8:06 ` rearnsha at gcc dot gnu dot org
2007-06-25 11:38 ` mmitchel at gcc dot gnu dot org
2007-07-20  3:52 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
2007-11-02  8:18 ` ebotcazou at gcc dot gnu dot org
2007-11-02  8:22 ` pinskia at gcc dot gnu dot org
2007-11-03  7:25 ` ebotcazou at gcc dot gnu dot org
2007-11-03  7:28 ` ebotcazou at gcc dot gnu dot org
2007-11-03  7:28 ` ebotcazou at gcc dot gnu dot org
2007-12-08 23:47 ` pinskia at gcc dot gnu dot org
2008-02-12 13:14 ` alexandre dot nunes at gmail dot com
2008-03-03 14:30 ` alexandre dot nunes at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31360-6528@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).