public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: hpenner@de.ibm.com
To: gcc-gnats@gcc.gnu.org
Cc: mark@codesourcery.com, uweigand@de.ibm.com
Subject: optimization/7409: loop optimization
Date: Thu, 25 Jul 2002 10:36:00 -0000	[thread overview]
Message-ID: <20020725172935.15951.qmail@sources.redhat.com> (raw)


>Number:         7409
>Category:       optimization
>Synopsis:       loop optimization
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 25 10:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     hpenner@de.ibm.com
>Release:        3.1.1 20020725 (prerelease)
>Organization:
>Environment:
s390x-linux-gnu 
>Description:
loop_optimize deletes an insn, which should not be deleted.
This leads to a abort of an application (tcl).

Scenario:

(set (reg 128) (plus (reg fp) (const_int 176)))

(set (reg 6) (reg 128))

(set (reg 2) call ()
    (expr_list (use (reg 6))))

(set (reg 96) (reg 6))

Loop optimizer thinks register 6 is in single usage, and hence delete the insn which sets register 6. This is done,
since register 6 is call-saved and a parameter.
Delete code in loop.c:876-909.
 

    
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-07-25 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-25 10:36 hpenner [this message]
2002-07-26  5:16 Bernhard Kaindl
2002-10-15 10:04 uweigand

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=20020725172935.15951.qmail@sources.redhat.com \
    --to=hpenner@de.ibm.com \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=mark@codesourcery.com \
    --cc=uweigand@de.ibm.com \
    /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).