From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id B986E3858432; Tue, 7 Dec 2021 16:50:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B986E3858432 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: 3d38fb639285891b53baaa8bf3a5e9e2b44cd200 X-Git-Newrev: 0e88015f3958435cc66b123e0ebaa9f7c2d59338 Message-Id: <20211207165021.B986E3858432@sourceware.org> Date: Tue, 7 Dec 2021 16:50:21 +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: Tue, 07 Dec 2021 16:50:21 -0000 https://gcc.gnu.org/g:0e88015f3958435cc66b123e0ebaa9f7c2d59338 commit 0e88015f3958435cc66b123e0ebaa9f7c2d59338 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);