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

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).