public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/18507] New: block_defs_stack varrray should not be GC'ed
@ 2004-11-15 23:05 pinskia at gcc dot gnu dot org
2004-11-16 15:53 ` [Bug tree-optimization/18507] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-15 23:05 UTC (permalink / raw)
To: gcc-bugs
For the testcase in PR 13776 (ir.ii) we spend a lot of time (10% out of 120 seconds) in ggc_alloc.
Most of that time comes from creatting/expanding the block_defs_stack varray in tree-into-ssa.c
Why is this GC allocated in the first place?
Maybe this should be a non-gc'ed VEC.
We know that this varray does not spill out from rewrite_blocks/rewrite_ssa_into_ssa at all.
--
Summary: block_defs_stack varrray should not be GC'ed
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: compile-time-hog
Severity: minor
Priority: P2
Component: tree-optimization
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18507
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/18507] block_defs_stack varrray should not be GC'ed
2004-11-15 23:05 [Bug tree-optimization/18507] New: block_defs_stack varrray should not be GC'ed pinskia at gcc dot gnu dot org
@ 2004-11-16 15:53 ` pinskia at gcc dot gnu dot org
2004-11-17 16:00 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-16 15:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-16 15:52 -------
Mine, this speeds up PR 13776 by 10 seconds or 7% (at -O3).
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |13776
nThis| |
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-16 15:52:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18507
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/18507] block_defs_stack varrray should not be GC'ed
2004-11-15 23:05 [Bug tree-optimization/18507] New: block_defs_stack varrray should not be GC'ed pinskia at gcc dot gnu dot org
2004-11-16 15:53 ` [Bug tree-optimization/18507] " pinskia at gcc dot gnu dot org
@ 2004-11-17 16:00 ` pinskia at gcc dot gnu dot org
2004-11-19 18:22 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-17 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-17 16:00 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01325.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18507
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/18507] block_defs_stack varrray should not be GC'ed
2004-11-15 23:05 [Bug tree-optimization/18507] New: block_defs_stack varrray should not be GC'ed pinskia at gcc dot gnu dot org
2004-11-16 15:53 ` [Bug tree-optimization/18507] " pinskia at gcc dot gnu dot org
2004-11-17 16:00 ` pinskia at gcc dot gnu dot org
@ 2004-11-19 18:22 ` pinskia at gcc dot gnu dot org
2004-11-19 18:22 ` cvs-commit at gcc dot gnu dot org
2004-12-01 0:50 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-19 18:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-19 18:22 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18507
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/18507] block_defs_stack varrray should not be GC'ed
2004-11-15 23:05 [Bug tree-optimization/18507] New: block_defs_stack varrray should not be GC'ed pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-11-19 18:22 ` pinskia at gcc dot gnu dot org
@ 2004-11-19 18:22 ` cvs-commit at gcc dot gnu dot org
2004-12-01 0:50 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-19 18:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-19 18:22 -------
Subject: Bug 18507
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-11-19 18:22:00
Modified files:
gcc : tree-flow.h tree-ssa-dom.c tree-into-ssa.c
ChangeLog
Log message:
2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/18507
* tree-flow.h (tree2): Typedef because there is already a VEC(tree).
Define a VEC(tree2) for head.
(register_new_def): Change second argument to be a VEC(tree2).
* tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree2).
(tree_ssa_dominator_optimize): Initialize block_defs_stack with
the VEC(tree2) function. Also free it before returning.
(dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
for block_defs_stack.
(restore_currdefs_to_original_value): Use VEC_length instead of
VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
(dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
for block_defs_stack.
* tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree2).
(rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
for block_defs_stack.
(ssa_register_new_def): Likewise.
(ssa_rewrite_initialize_block): Likewise.
(rewrite_finalize_block): Use VEC_length instead of
VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
(ssa_rewrite_finalize_block): Likewise.
(register_new_def): Change second argument to be a VEC(tree2).
Use VEC_safe_push instead of VARRAY_PUSH_TREE.
(rewrite_blocks): Initialize block_defs_stack with
the VEC(tree2) function. Also free it before returning.
(rewrite_ssa_into_ssa): Likewise.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-flow.h.diff?cvsroot=gcc&r1=2.66&r2=2.67
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-dom.c.diff?cvsroot=gcc&r1=2.67&r2=2.68
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-into-ssa.c.diff?cvsroot=gcc&r1=2.30&r2=2.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6416&r2=2.6417
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18507
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/18507] block_defs_stack varrray should not be GC'ed
2004-11-15 23:05 [Bug tree-optimization/18507] New: block_defs_stack varrray should not be GC'ed pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-19 18:22 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-01 0:50 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-01 0:50 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18507
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-12-01 0:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-15 23:05 [Bug tree-optimization/18507] New: block_defs_stack varrray should not be GC'ed pinskia at gcc dot gnu dot org
2004-11-16 15:53 ` [Bug tree-optimization/18507] " pinskia at gcc dot gnu dot org
2004-11-17 16:00 ` pinskia at gcc dot gnu dot org
2004-11-19 18:22 ` pinskia at gcc dot gnu dot org
2004-11-19 18:22 ` cvs-commit at gcc dot gnu dot org
2004-12-01 0:50 ` 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).