public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/22348] [4.0/4.1 Regression] IV canonicalization causes execution of loops past their end condition
Date: Thu, 14 Jul 2005 20:36:00 -0000	[thread overview]
Message-ID: <20050714203340.17637.qmail@sourceware.org> (raw)
In-Reply-To: <20050707165800.22348.matt+gccbugs@ucc.asn.au>


------- Additional Comments From steven at gcc dot gnu dot org  2005-07-14 20:33 -------
On mainline we have this .empty dump for main: 
 
;; Function main (main) 
 
main () 
{ 
  unsigned int i; 
  int D.1613; 
  int i.0; 
 
<bb 0>: 
 
  # i_2 = PHI <i_6(2), 4(0)>; 
<L0>:; 
  i.0_5 = (int) i_2; 
  f (i.0_5); 
  i_6 = i_2 + 3; 
  if (i_6 <= 51) goto <L6>; else goto <L2>; 
 
<L6>:; 
  goto <bb 1> (<L0>); 
 
<L2>:; 
  return 0; 
 
} 
 
 
and this .ivcanon dump, which is wrong: 
 
;; Function main (main) 
 
main () 
{ 
  unsigned int ivtmp.51; 
  unsigned int i; 
  int D.1613; 
  int i.0; 
 
<bb 0>: 
 
  # ivtmp.51_1 = PHI <ivtmp.51_3(2), 1431655782(0)>; 
  # i_2 = PHI <i_6(2), 4(0)>; 
<L0>:; 
  i.0_5 = (int) i_2; 
  f (i.0_5); 
  i_6 = i_2 + 3; 
  ivtmp.51_3 = ivtmp.51_1 - 1; 
  if (ivtmp.51_3 != 0) goto <L6>; else goto <L2>; 
 
<L6>:; 
  goto <bb 1> (<L0>); 
 
<L2>:; 
  return 0; 
 
} 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org
           Priority|P2                          |P1
            Summary|[4.0/4.1 Regression]        |[4.0/4.1 Regression] IV
                   |Execution continues past end|canonicalization causes
                   |of for loop end condition   |execution of loops past
                   |with optimisation enabled   |their end condition


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


  parent reply	other threads:[~2005-07-14 20:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07 16:58 [Bug c/22348] New: Execution continues past end of for loop end condition with optimisation enabled matt+gccbugs at ucc dot asn dot au
2005-07-07 16:59 ` [Bug c/22348] " matt+gccbugs at ucc dot asn dot au
2005-07-07 17:02 ` matt+gccbugs at ucc dot asn dot au
2005-07-07 17:13 ` [Bug tree-optimization/22348] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-07-07 17:39 ` [Bug tree-optimization/22348] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-07-14 20:36 ` steven at gcc dot gnu dot org [this message]
2005-07-14 23:46 ` [Bug tree-optimization/22348] [4.0/4.1 Regression] IV canonicalization causes execution of loops past their end condition steven at gcc dot gnu dot org
2005-07-15  0:06 ` steven at gcc dot gnu dot org
2005-07-15  9:58 ` rakdver at gcc dot gnu dot org
2005-07-15 10:26 ` rakdver at gcc dot gnu dot org
2005-07-27 14:06 ` cvs-commit at gcc dot gnu dot org
2005-07-27 14:27 ` [Bug tree-optimization/22348] [4.0/4.1 Regression] Wrong folding for FLOOR_MOD_EXPR rakdver at gcc dot gnu dot org
2005-07-27 16:37 ` pinskia at gcc dot gnu dot org
2005-07-27 16:39 ` [Bug tree-optimization/22348] [4.0/4.1 Regression] Execution continues past end of for loop end condition with optimisation enabled pinskia at gcc dot gnu dot org
2005-07-27 16:40 ` [Bug tree-optimization/22348] [4.0 " pinskia at gcc dot gnu dot org
2005-07-27 16:45 ` pinskia at gcc dot gnu dot org
2005-08-29 14:58 ` bonzini at gcc dot gnu dot org
2005-08-29 15:26 ` rakdver at gcc dot gnu dot org
2005-09-01 16:09 ` cvs-commit at gcc dot gnu dot org
2005-09-08 10:09 ` cvs-commit at gcc dot gnu dot org
2005-09-08 12:38 ` pinskia at gcc dot gnu dot org

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=20050714203340.17637.qmail@sourceware.org \
    --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).