public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23997] New: DCE removes a loop when it shouldn't
@ 2005-09-21 13:33 dorit at il dot ibm dot com
  2005-09-21 13:46 ` [Bug middle-end/23997] " dorit at il dot ibm dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: dorit at il dot ibm dot com @ 2005-09-21 13:33 UTC (permalink / raw)
  To: gcc-bugs

DCE (.t44.dce3) eliminates the third loop in the testcase below, although the 
print loop should be enough to keep it alive:

======================
subroutine foo(a,b)
real a,b
type bzz
   real d(100)
end type bzz
type (bzz) e

dimension a(100), b(100)
read *,x,y
a=log(x)    <--- loop 1
b=log(y)    <--- loop 2
e%d = a+b   <--- loop 3. eliminated
print *,e%d
end
======================

See related thread here: http://gcc.gnu.org/ml/gcc/2005-09/msg00645.html

-- 
           Summary: DCE removes a loop when it shouldn't
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dorit at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ppc64-yellowdog-linux
  GCC host triplet: ppc64-yellowdog-linux
GCC target triplet: ppc64-yellowdog-linux


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/23997] DCE removes a loop when it shouldn't
  2005-09-21 13:33 [Bug middle-end/23997] New: DCE removes a loop when it shouldn't dorit at il dot ibm dot com
@ 2005-09-21 13:46 ` dorit at il dot ibm dot com
  2005-09-21 13:51   ` Andrew Pinski
  2005-09-21 13:51 ` pinskia at physics dot uc dot edu
  2005-09-21 14:23 ` pinskia at gcc dot gnu dot org
  2 siblings, 1 reply; 5+ messages in thread
From: dorit at il dot ibm dot com @ 2005-09-21 13:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dorit at il dot ibm dot com  2005-09-21 13:46 -------
I don't know how this happened - I didn't mean to open this PR again. This 
should be closed.

-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/23997] DCE removes a loop when it shouldn't
  2005-09-21 13:33 [Bug middle-end/23997] New: DCE removes a loop when it shouldn't dorit at il dot ibm dot com
  2005-09-21 13:46 ` [Bug middle-end/23997] " dorit at il dot ibm dot com
@ 2005-09-21 13:51 ` pinskia at physics dot uc dot edu
  2005-09-21 14:23 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-09-21 13:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2005-09-21 13:51 -------
Subject: Re:  DCE removes a loop when it shouldn't


On Sep 21, 2005, at 9:46 AM, dorit at il dot ibm dot com wrote:

>
> ------- Additional Comments From dorit at il dot ibm dot com  
> 2005-09-21 13:46 -------
> I don't know how this happened - I didn't mean to open this PR again. 
> This
> should be closed.

Daniel opened because there is a latent bug still.
I had meant not really to close this but I did.

-- Pinski



-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bug middle-end/23997] DCE removes a loop when it shouldn't
  2005-09-21 13:46 ` [Bug middle-end/23997] " dorit at il dot ibm dot com
@ 2005-09-21 13:51   ` Andrew Pinski
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Pinski @ 2005-09-21 13:51 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs


On Sep 21, 2005, at 9:46 AM, dorit at il dot ibm dot com wrote:

>
> ------- Additional Comments From dorit at il dot ibm dot com  
> 2005-09-21 13:46 -------
> I don't know how this happened - I didn't mean to open this PR again. 
> This
> should be closed.

Daniel opened because there is a latent bug still.
I had meant not really to close this but I did.

-- Pinski


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/23997] DCE removes a loop when it shouldn't
  2005-09-21 13:33 [Bug middle-end/23997] New: DCE removes a loop when it shouldn't dorit at il dot ibm dot com
  2005-09-21 13:46 ` [Bug middle-end/23997] " dorit at il dot ibm dot com
  2005-09-21 13:51 ` pinskia at physics dot uc dot edu
@ 2005-09-21 14:23 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-21 14:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-21 14:23 -------
Oh, this is a dup.  I missed the bug number change.

*** This bug has been marked as a duplicate of 23989 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-21 14:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-21 13:33 [Bug middle-end/23997] New: DCE removes a loop when it shouldn't dorit at il dot ibm dot com
2005-09-21 13:46 ` [Bug middle-end/23997] " dorit at il dot ibm dot com
2005-09-21 13:51   ` Andrew Pinski
2005-09-21 13:51 ` pinskia at physics dot uc dot edu
2005-09-21 14:23 ` pinskia 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).