diff options
author | Richard Guenther <rguenther@suse.de> | 2008-01-08 16:29:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-01-08 16:29:14 +0000 |
commit | a9990582a84e6fac0f7274fae1686f209c58c457 (patch) | |
tree | ecfed3abf31acdafc39792d76273a9ef575c689c /gcc/tree-ssa-operands.h | |
parent | 0f3e711eef24f6b00e7dc462288c064d68a9ec43 (diff) | |
download | gcc-a9990582a84e6fac0f7274fae1686f209c58c457.zip gcc-a9990582a84e6fac0f7274fae1686f209c58c457.tar.gz gcc-a9990582a84e6fac0f7274fae1686f209c58c457.tar.bz2 |
re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)
2008-01-08 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34683
* tree-ssa-operands.c (operand_build_cmp): Export.
* tree-ssa-operands.h (operand_build_cmp): Declare.
* tree-vn.c (vuses_compare): Remove.
(sort_vuses): Use operand_build_cmp.
(sort_vuses_heap): Likewise.
* tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
to re-use old VEC if available. Do not sort already sorted VUSEs.
(vdefs_to_vec): Do not sort already sorted VDEFs.
From-SVN: r131400
Diffstat (limited to 'gcc/tree-ssa-operands.h')
-rw-r--r-- | gcc/tree-ssa-operands.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-operands.h b/gcc/tree-ssa-operands.h index f48245f..ba9793d 100644 --- a/gcc/tree-ssa-operands.h +++ b/gcc/tree-ssa-operands.h @@ -210,6 +210,7 @@ extern void free_stmt_operands (tree); extern bool verify_imm_links (FILE *f, tree var); extern void copy_virtual_operands (tree, tree); +extern int operand_build_cmp (const void *, const void *); extern void create_ssa_artificial_load_stmt (tree, tree, bool); extern void dump_immediate_uses (FILE *file); |