public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
@ 2004-11-09 14:36 ` pinskia at gcc dot gnu dot org
2004-11-09 14:37 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 14:36 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner
@ 2004-11-09 14:36 pinskia at gcc dot gnu dot org
2004-11-09 14:36 ` [Bug java/18399] " pinskia at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 14:36 UTC (permalink / raw)
To: gcc-bugs
As reported in <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00713.html>. We no longer do the
class initializer optimization after inlining.
--
Summary: [4.0 Regression] Class initialization optimization does
not work with the inliner
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
2004-11-09 14:36 ` [Bug java/18399] " pinskia at gcc dot gnu dot org
@ 2004-11-09 14:37 ` pinskia at gcc dot gnu dot org
2004-11-09 14:40 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 14:37 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Bug 18399 depends on bug 15576, which changed state.
Bug 15576 Summary: [4.0 Regression] Class initialization optimization is disabled
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15576
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXEDBug 18399 depends on bug 15576, which changed state.
Bug 15576 Summary: [4.0 Regression] Class initialization optimization is disabled
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15576
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
2004-11-09 14:36 ` [Bug java/18399] " pinskia at gcc dot gnu dot org
2004-11-09 14:37 ` pinskia at gcc dot gnu dot org
@ 2004-11-09 14:40 ` pinskia at gcc dot gnu dot org
2004-11-09 14:53 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 14:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |17574
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-11-09 14:40 ` pinskia at gcc dot gnu dot org
@ 2004-11-09 14:53 ` pinskia at gcc dot gnu dot org
2004-12-12 4:39 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 14:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-09 14:53 -------
A good small example:
public class t
{
static final int nn()
{
return 0;
}
public static void main (String[] argv)
{
int n = 0;
for (int i = 0; i < 1000; i++)
n += nn();
System.out.println(n);
}
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-09 14:53:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-09 14:53 ` pinskia at gcc dot gnu dot org
@ 2004-12-12 4:39 ` pinskia at gcc dot gnu dot org
2005-01-15 6:22 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-12 4:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-12 04:39 -------
Actually the way this used to work before the tree-ssa was during inlining we called out to the front-
end to merge the two variables.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-12-05 03:59:18 |2004-12-12 04:39:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-12-12 4:39 ` pinskia at gcc dot gnu dot org
@ 2005-01-15 6:22 ` pinskia at gcc dot gnu dot org
2005-01-19 18:52 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-15 6:22 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Last reconfirmed|2004-12-12 04:39:18 |2005-01-15 06:21:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-01-15 6:22 ` pinskia at gcc dot gnu dot org
@ 2005-01-19 18:52 ` mmitchel at gcc dot gnu dot org
2005-03-05 19:51 ` [Bug java/18399] [4.0/4.1 " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-01-19 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-01-19 18:52 -------
Ada and Java bugs are not release-critical; therefore, I've removed the target
milsetone.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0/4.1 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-01-19 18:52 ` mmitchel at gcc dot gnu dot org
@ 2005-03-05 19:51 ` pinskia at gcc dot gnu dot org
2005-04-16 16:57 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-05 19:51 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0/4.1 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-03-05 19:51 ` [Bug java/18399] [4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2005-04-16 16:57 ` pinskia at gcc dot gnu dot org
2005-04-16 17:02 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-16 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-16 16:57 -------
*** Bug 21044 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |aph at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0/4.1 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-04-16 16:57 ` pinskia at gcc dot gnu dot org
@ 2005-04-16 17:02 ` pinskia at gcc dot gnu dot org
2005-05-03 13:12 ` aph at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-16 17:02 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.0 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] [4.0/4.1 Regression] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (9 preceding siblings ...)
2005-04-16 17:02 ` pinskia at gcc dot gnu dot org
@ 2005-05-03 13:12 ` aph at gcc dot gnu dot org
2005-08-20 19:29 ` [Bug java/18399] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-05-03 13:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aph at gcc dot gnu dot org 2005-05-03 13:12 -------
This bug is obsoleted by the fix for PR java/19285.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (10 preceding siblings ...)
2005-05-03 13:12 ` aph at gcc dot gnu dot org
@ 2005-08-20 19:29 ` pinskia at gcc dot gnu dot org
2005-08-20 19:33 ` pinskia at gcc dot gnu dot org
2005-08-20 19:41 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-20 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-20 19:29 -------
Actually this still does not work:
>From .final_cleanup:
<L1>:;
_Jv_InitClass (&t.class);
;
i = i + 1;
if (i == 1000) goto <L4>; else goto <L1>;
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |enhancement
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
Summary|[4.0/4.1 Regression] Class |Class initialization
|initialization optimization |optimization does not work
|does not work with the |with the inliner
|inliner |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (11 preceding siblings ...)
2005-08-20 19:29 ` [Bug java/18399] " pinskia at gcc dot gnu dot org
@ 2005-08-20 19:33 ` pinskia at gcc dot gnu dot org
2005-08-20 19:41 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-20 19:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-20 19:31 -------
I should copy and paste the full tree dump:
<bb 0>:
_Jv_InitClass (&t.class);
n = 0;
<L1>:;
_Jv_InitClass (&t.class);
n = n + 1;
;
if (n == 1000) goto <L4>; else goto <L1>;
The call to _Jv_InitClass is in the inner loop which causes a slow down and use not to be able to remove
the loop.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug java/18399] Class initialization optimization does not work with the inliner
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
` (12 preceding siblings ...)
2005-08-20 19:33 ` pinskia at gcc dot gnu dot org
@ 2005-08-20 19:41 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-20 19:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18399
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2005-08-20 19:33 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 14:36 [Bug java/18399] New: [4.0 Regression] Class initialization optimization does not work with the inliner pinskia at gcc dot gnu dot org
2004-11-09 14:36 ` [Bug java/18399] " pinskia at gcc dot gnu dot org
2004-11-09 14:37 ` pinskia at gcc dot gnu dot org
2004-11-09 14:40 ` pinskia at gcc dot gnu dot org
2004-11-09 14:53 ` pinskia at gcc dot gnu dot org
2004-12-12 4:39 ` pinskia at gcc dot gnu dot org
2005-01-15 6:22 ` pinskia at gcc dot gnu dot org
2005-01-19 18:52 ` mmitchel at gcc dot gnu dot org
2005-03-05 19:51 ` [Bug java/18399] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-04-16 16:57 ` pinskia at gcc dot gnu dot org
2005-04-16 17:02 ` pinskia at gcc dot gnu dot org
2005-05-03 13:12 ` aph at gcc dot gnu dot org
2005-08-20 19:29 ` [Bug java/18399] " pinskia at gcc dot gnu dot org
2005-08-20 19:33 ` pinskia at gcc dot gnu dot org
2005-08-20 19:41 ` 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).