From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 80DB53858418; Wed, 8 Dec 2021 10:17:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80DB53858418 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Do not use auto_vec when passing.. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/loop-unswitch-improvement-v7 X-Git-Oldrev: cae0db72e5ca1975607c5b17713f66a7625e2608 X-Git-Newrev: c5dec13865916161fe3cbd43a9b7eddf90e85cf2 Message-Id: <20211208101715.80DB53858418@sourceware.org> Date: Wed, 8 Dec 2021 10:17:15 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2021 10:17:15 -0000 https://gcc.gnu.org/g:c5dec13865916161fe3cbd43a9b7eddf90e85cf2 commit c5dec13865916161fe3cbd43a9b7eddf90e85cf2 Author: Martin Liska 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 d6412bd49aa..5b625206945 100644 --- a/gcc/tree-ssa-loop-unswitch.c +++ b/gcc/tree-ssa-loop-unswitch.c @@ -100,7 +100,8 @@ static vec> *bb_predicates = NULL; static gimple_ranger *ranger = NULL; /* The type represents a predicate path leading to a basic block. */ -typedef auto_vec> predicate_vector; +typedef vec> auto_predicate_vector; +typedef vec> 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);