From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id E3D803858433; Wed, 8 Dec 2021 10:17:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3D803858433 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)] Simplify condition. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/loop-unswitch-improvement-v7 X-Git-Oldrev: 4c4702fa009d4eeef32b3c247b0855eac5e4f1c4 X-Git-Newrev: 535d9440140bd2bbcc7b1d0ac30ea16ffdeb400c Message-Id: <20211208101745.E3D803858433@sourceware.org> Date: Wed, 8 Dec 2021 10:17:45 +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:46 -0000 https://gcc.gnu.org/g:535d9440140bd2bbcc7b1d0ac30ea16ffdeb400c commit 535d9440140bd2bbcc7b1d0ac30ea16ffdeb400c Author: Martin Liska Date: Tue Dec 7 15:25:17 2021 +0100 Simplify condition. Diff: --- gcc/tree-ssa-loop-unswitch.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c index a99a2b7a80b..6e5dc923fba 100644 --- a/gcc/tree-ssa-loop-unswitch.c +++ b/gcc/tree-ssa-loop-unswitch.c @@ -515,11 +515,7 @@ evaluate_control_stmt_using_entry_checks (gimple *stmt, const auto_edge_flag &ignored_edge_flag, hash_set *ignored_edges) { - tree lhs = NULL_TREE; - - // FIXME: remove? - if (predicate_path.is_empty ()) - return NULL_TREE; + tree lhs; gcond *condition = dyn_cast (stmt); gswitch *swtch = dyn_cast (stmt);