diff options
author | Kazu Hirata <kazu@gcc.gnu.org> | 2005-03-18 14:02:26 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-03-18 14:02:26 +0000 |
commit | 625da0db0f79c2d754857d772bb59aba0a3ea1cb (patch) | |
tree | 905f57f6c410fa54d83a69ced89daba6e056c61c /gcc/tree-into-ssa.c | |
parent | 6726a1f593aadde5bc0e1a54dff1f72700585d8e (diff) | |
download | gcc-625da0db0f79c2d754857d772bb59aba0a3ea1cb.zip gcc-625da0db0f79c2d754857d772bb59aba0a3ea1cb.tar.gz gcc-625da0db0f79c2d754857d772bb59aba0a3ea1cb.tar.bz2 |
tree-into-ssa.c (find_idf): Use VEC_quick_push instead of VEC_safe_push.
* tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
VEC_safe_push.
From-SVN: r96684
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 8c58a45..37ad103 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 |