public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23989] New: DCE removes a loop when it shouldn't
@ 2005-09-21  7:48 dorit at il dot ibm dot com
  2005-09-21 11:30 ` [Bug tree-optimization/23989] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: dorit at il dot ibm dot com @ 2005-09-21  7:48 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=23989


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-23989-8585@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-04 12:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-21  7:48 [Bug middle-end/23989] New: DCE removes a loop when it shouldn't dorit at il dot ibm dot com
2005-09-21 11:30 ` [Bug tree-optimization/23989] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-21 13:16 ` dorit at il dot ibm dot com
2005-09-21 13:17 ` pinskia at gcc dot gnu dot org
2005-09-21 13:41 ` dberlin at gcc dot gnu dot org
2005-09-21 13:42 ` dberlin at gcc dot gnu dot org
2005-09-21 14:23 ` pinskia at gcc dot gnu dot org
2005-09-21 14:24 ` pinskia at gcc dot gnu dot org
     [not found] <bug-23989-8585@http.gcc.gnu.org/bugzilla/>
2005-10-04 12:37 ` dberlin at gcc dot gnu dot org
2005-10-04 12:38 ` 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).