diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-08 16:29:14 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-08 16:29:14 +0000 |
commit | 911908dca6d055235a653b76fc6826747c9a1f23 (patch) | |
tree | ecfed3abf31acdafc39792d76273a9ef575c689c /gcc/tree-ssa-operands.c | |
parent | cfbdd7def6579707128299d6429c1273e778a97f (diff) | |
download | gcc-911908dca6d055235a653b76fc6826747c9a1f23.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131400 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 116877d77bb..ceb18ba55a6 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -210,7 +210,7 @@ get_name_decl (const_tree t) /* Comparison function for qsort used in operand_build_sort_virtual. */ -static int +int operand_build_cmp (const void *p, const void *q) { const_tree const e1 = *((const_tree const *)p); |