Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 27004
Product:  
Component:  
Status: NEW
Resolution:
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Paolo Bonzini <bonzini@gnu.org>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
fix-pr27004 patch text/plain 2007-11-04 13:38 1.71 KB Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 27004 depends on: 26830 26854 Show dependency tree
Show dependency graph
Bug 27004 blocks:

Additional Comments:





Mark bug as waiting for feedback
Mark bug as suspended




View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2007-11-04 12:47 Opened: 2006-04-03 13:43
spinning a separate bug from PR26830.  we are creating a lot of field memory
tags, each of which is present in a 900-argument phi, which causes us to use
more memory than 4.0.

to some extent this is unavoidable, but I wonder if we could throttle things
down a bit?

------- Comment #1 From Daniel Berlin 2006-04-03 14:37 -------
Subject: Re:   New: [4.1/4.2 Regression]
        Insane amount of memory needed at -O1 and above because of salias

On Mon, 2006-04-03 at 13:43 +0000, bonzini at gnu dot org wrote:
> spinning a separate bug from PR26830.  we are creating a lot of field memory
> tags, each of which is present in a 900-argument phi, which causes us to use
> more memory than 4.0.
> 
> to some extent this is unavoidable, but I wonder if we could throttle things
> down a bit?
> 

Err, why do we have a 900 argument phi?
Seems a bit large.

------- Comment #2 From rguenther@suse.de 2006-04-03 14:39 -------
Subject: Re:  [4.1/4.2 Regression] Insane amount
 of memory needed at -O1 and above because of salias

On Mon, 3 Apr 2006, dberlin at dberlin dot org wrote:

> On Mon, 2006-04-03 at 13:43 +0000, bonzini at gnu dot org wrote:
> > spinning a separate bug from PR26830.  we are creating a lot of field memory
> > tags, each of which is present in a 900-argument phi, which causes us to use
> > more memory than 4.0.
> > 
> > to some extent this is unavoidable, but I wonder if we could throttle things
> > down a bit?
> > 
> 
> Err, why do we have a 900 argument phi?
> Seems a bit large.

Because the testcase is - err - interesting.

Richard.

------- Comment #3 From Mark Mitchell 2006-05-25 02:34 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.

------- Comment #4 From Richard Guenther 2007-11-04 12:47 -------
If you solve the SFT problem, DF needs lot of memory and compile-time in this
testcase on the trunk.  The execute() function has lots of basic blocks with
a high number of incoming edges.

So, I have a patch for the SFT problem.

------- Comment #5 From Richard Guenther 2007-11-04 13:34 -------
Some numbers (-O):

4.0.4 needs 596MB peak
4.1.2 needs 2GB peak (and a lot of time)
4.2.2 same as 4.1.2
4.3.0 same as 4.2.2

------- Comment #6 From Richard Guenther 2007-11-04 13:38 -------
Created an attachment (id=14483) [edit]
patch

Patch to limit the number of SFTs created per function.  The limit of 1000 SFTs
brings down memory usage to 1.3GB, a limit of 500 to 1.2GB, a limit of 100
results in 970MB, a limit of
zero 954MB.

So there's still something taking 400MB more memory than in 4.0.

------- Comment #7 From Joseph S. Myers 2008-07-04 20:23 -------
Closing 4.1 branch.

------- Comment #8 From Jakub Jelinek 2008-12-08 14:41 -------
It is unclear which target this was tested on, in any case current trunk tops
on this at around 1.2GB.

------- Comment #9 From Richard Guenther 2008-12-08 14:47 -------
I think this is a dup of PR26854 on the trunk at least - the excess memory used
is used by DF (SFTs are gone on the trunk).

So, this is now a 4.2/4.3 regression only (which still have SFTs).

------- Comment #10 From Joseph S. Myers 2009-03-31 19:33 -------
Closing 4.2 branch.

------- Comment #11 From Richard Guenther 2009-08-04 12:27 -------
GCC 4.3.4 is being released, adjusting target milestone.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug