From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 8EAF6385842C; Wed, 8 Dec 2021 10:17:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EAF6385842C 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. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/loop-unswitch-improvement-v7 X-Git-Oldrev: c5dec13865916161fe3cbd43a9b7eddf90e85cf2 X-Git-Newrev: fd91a1739d0d45e0331a618b743946a767ba9f48 Message-Id: <20211208101720.8EAF6385842C@sourceware.org> Date: Wed, 8 Dec 2021 10:17:20 +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:20 -0000 https://gcc.gnu.org/g:fd91a1739d0d45e0331a618b743946a767ba9f48 commit fd91a1739d0d45e0331a618b743946a767ba9f48 Author: Martin Liska 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> *bb_predicates = NULL; static gimple_ranger *ranger = NULL; /* The type represents a predicate path leading to a basic block. */ -typedef vec> auto_predicate_vector; typedef vec> 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);