[gcc(refs/users/marxin/heads/loop-unswitch-improvement-v5)] Do not use auto_vec when passing..
Martin Liska
marxin@gcc.gnu.org
Thu Dec 2 13:11:03 GMT 2021
https://gcc.gnu.org/g:3b0421ff43c889642c36d97790a0a33ced0ee602
commit 3b0421ff43c889642c36d97790a0a33ced0ee602
Author: Martin Liska <mliska@suse.cz>
Date: Wed Dec 1 15:13:31 2021 +0100
Do not use auto_vec when passing..
Diff:
---
gcc/tree-ssa-loop-unswitch.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index 6ffa0c31eeb..3a1ecf40c7b 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -100,7 +100,8 @@ static vec<vec<unswitch_predicate *>> *bb_predicates = NULL;
static gimple_ranger *ranger = NULL;
/* The type represents a predicate path leading to a basic block. */
-typedef auto_vec<std::pair<unswitch_predicate *, bool>> predicate_vector;
+typedef vec<std::pair<unswitch_predicate *, bool>> auto_predicate_vector;
+typedef vec<std::pair<unswitch_predicate *, bool>> predicate_vector;
static class loop *tree_unswitch_loop (class loop *, basic_block, tree);
static bool tree_unswitch_single_loop (class loop *, int,
@@ -199,7 +200,7 @@ tree_ssa_unswitch_loops (void)
unsigned int budget
= init_loop_unswitch_info (loop) + param_max_unswitch_insns;
- predicate_vector predicate_path;
+ auto_predicate_vector predicate_path;
changed |= tree_unswitch_single_loop (loop, 0, predicate_path,
budget);
More information about the Gcc-cvs
mailing list