[gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Do not use auto_vec.
Martin Liska
marxin@gcc.gnu.org
Wed Dec 8 10:17:20 GMT 2021
https://gcc.gnu.org/g:fd91a1739d0d45e0331a618b743946a767ba9f48
commit fd91a1739d0d45e0331a618b743946a767ba9f48
Author: Martin Liska <mliska@suse.cz>
Date: Wed Dec 1 15:49:30 2021 +0100
Do not use auto_vec.
Diff:
---
gcc/tree-ssa-loop-unswitch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index 5b625206945..1383f2d355d 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -100,7 +100,6 @@ 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 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);
@@ -200,7 +199,8 @@ tree_ssa_unswitch_loops (void)
unsigned int budget
= init_loop_unswitch_info (loop) + param_max_unswitch_insns;
- auto_predicate_vector predicate_path;
+ predicate_vector predicate_path;
+ predicate_path.create (8);
changed |= tree_unswitch_single_loop (loop, 0, predicate_path,
budget);
More information about the Gcc-cvs
mailing list