summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-18 14:02:26 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-18 14:02:26 +0000
commitbbc1dc3ccefaa61da73efaffdcda85af50dc76a5 (patch)
tree905f57f6c410fa54d83a69ced89daba6e056c61c
parent9a878e5e062f008a1a993acc0061045004da009d (diff)
downloadppe42-gcc-bbc1dc3ccefaa61da73efaffdcda85af50dc76a5.tar.gz
ppe42-gcc-bbc1dc3ccefaa61da73efaffdcda85af50dc76a5.zip
* tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
VEC_safe_push. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96684 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/tree-into-ssa.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bdd94e44e37..a4a37854763 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,9 @@
-2005-03-01 Paolo Bonzini <bonzini@gnu.org>
+2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
+
+ * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
+ VEC_safe_push.
+
+2005-03-18 Paolo Bonzini <bonzini@gnu.org>
* combine.c (gen_binary): Remove.
(known_cond, simplify_shift_const, find_split_point,
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c
index 8c58a457dac..37ad103c67f 100644
--- a/gcc/tree-into-ssa.c
+++ b/gcc/tree-into-ssa.c
@@ -511,7 +511,11 @@ find_idf (bitmap def_blocks, bitmap *dfs)
/* Seed the work list with all the blocks in DEF_BLOCKS. */
EXECUTE_IF_SET_IN_BITMAP (def_blocks, 0, bb_index, bi)
- VEC_safe_push (int, work_stack, bb_index);
+ /* We use VEC_quick_push here for speed. This is safe because we
+ know that the number of definition blocks is no greater than
+ the number of basic blocks, which is the initial capacity of
+ WORK_STACK. */
+ VEC_quick_push (int, work_stack, bb_index);
/* Pop a block off the worklist, add every block that appears in
the original block's DF that we have not already processed to
OpenPOWER on IntegriCloud