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; 8+ 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] 8+ messages in thread
* [Bug tree-optimization/23989] [4.1 Regression] DCE removes a loop when it shouldn't 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 ` pinskia at gcc dot gnu dot org 2005-09-21 13:16 ` dorit at il dot ibm dot com ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-21 11:30 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-21 11:30 ------- This should be fixed by: http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01294.html -- What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |tree-optimization Keywords| |wrong-code Known to fail| |4.1.0 Known to work| |4.0.0 4.0.1 Summary|DCE removes a loop when it |[4.1 Regression] DCE removes |shouldn't |a loop when it shouldn't Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23989 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23989] [4.1 Regression] DCE removes a loop when it shouldn't 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 ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: dorit at il dot ibm dot com @ 2005-09-21 13:16 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From dorit at il dot ibm dot com 2005-09-21 13:16 ------- Indeed. This bug can be closed now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23989 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23989] [4.1 Regression] DCE removes a loop when it shouldn't 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 ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-21 13:17 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-21 13:17 ------- Fixed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23989 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23989] [4.1 Regression] DCE removes a loop when it shouldn't 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 ` (2 preceding siblings ...) 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 ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: dberlin at gcc dot gnu dot org @ 2005-09-21 13:41 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From dberlin at gcc dot gnu dot org 2005-09-21 13:41 ------- This is wrong. As I stated on IRC, that only fixes the problem as a side effect. There is a real latent bug here. We should be getting the right result regardless of whether points-to says it points to e or points to anything. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23989 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23989] [4.1 Regression] DCE removes a loop when it shouldn't 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 ` (3 preceding siblings ...) 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 6 siblings, 0 replies; 8+ messages in thread From: dberlin at gcc dot gnu dot org @ 2005-09-21 13:42 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |dberlin at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-09-21 13:42:34 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23989 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23989] [4.1 Regression] DCE removes a loop when it shouldn't 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 ` (4 preceding siblings ...) 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 6 siblings, 0 replies; 8+ 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 ------- *** Bug 23997 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23989 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23989] [4.1 Regression] DCE removes a loop when it shouldn't 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 ` (5 preceding siblings ...) 2005-09-21 14:23 ` pinskia at gcc dot gnu dot org @ 2005-09-21 14:24 ` pinskia at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-21 14:24 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.1.0 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23989 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-21 14:24 UTC | newest] Thread overview: 8+ 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
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).