public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Do not use auto_vec.
@ 2021-12-07 15:21 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2021-12-07 15:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7637561dcae8f983bb541dc526299122cb593950

commit 7637561dcae8f983bb541dc526299122cb593950
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 3a1ecf40c7b..10609cf71a5 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);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Do not use auto_vec.
@ 2021-12-06 14:34 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2021-12-06 14:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fa937500da92d0bf5deb86a76c49c2d74695998f

commit fa937500da92d0bf5deb86a76c49c2d74695998f
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 3a1ecf40c7b..10609cf71a5 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);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-07 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 15:21 [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v6)] Do not use auto_vec Martin Liska
  -- strict thread matches above, loose matches on Subject: below --
2021-12-06 14:34 Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).