From patchwork Tue Oct 1 17:14:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 174895 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8836282ill; Tue, 1 Oct 2019 10:14:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8NTl/DWHsKmTQWsylfr/DSL7NbkcsvrteoHeKTwU9d2gbPCjKqAVT4ub+eVHIUGP3ycP4 X-Received: by 2002:a05:6402:1681:: with SMTP id a1mr26676641edv.218.1569950099456; Tue, 01 Oct 2019 10:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569950099; cv=none; d=google.com; s=arc-20160816; b=EOY0CoTuG/ff5xAbf3I+cgenk8kkABI2bZbFsZu1ZawmsdbxJcPgfNNu9KkFBEaEzC +3AYXW2hUmDqobXCS5z/pVquSgJejLDge0sYDoigy1nf0Fjhhn6GsxC23Df4G0LGlGDX yjUefxK/XY1JYnJS6NLVqfnOxUyJQZNhbJ6kmezK9cbT8arAlWBGrT54IjzmAYHfp1Tu uQaSScoQykoLxzb3mrEBp2sABY4MNkMtU/61NTgjxAZBZR+bSBELAA3/q9sFZ0aC5mDy rslQofq1KP0ATGW1L24jBd0UwwVrgud2eJb8sx/kwfwJpdL3jDQ8QnmAvEtjDRGQMIU8 2iow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=u8g8Mud0xHeeAVDW3vY8jDld1vcIWph0jZpafTfYC9o=; b=cxQsX+fXpUwzuSkIKzS1NYLHe4kryNnTzKkk4g9xhtiBso9q1qT9t2s5wUODvgGI25 8fBCtFwaDKMZ+MjX2KZkxXhFF04h6kRYlkaMpC3Mpf4t4KltR4cjyJw0z+plo46U0eLg rfU0H3Bzl+Vh/M12s8ZwC3fq1vTEKEwBaBddWdeaoaD2AuF3fs5XpK4F1Y2sp+NHWmrb 4oyXxFcXI+1nm0J+5hOTtsFI3Idq8R0zIZMF5TL+4up+ajVFQTeh2QMdTduu+JUUT/SC Vkh5aX/uJA/o9RYJZZELv9lYcqL3HxJkGHRF66ezlYYwK3Iw/U+fcp1SskSVmrlHtxvh J8oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=a3GfJori; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lHEid48S; spf=pass (google.com: domain of gcc-patches-return-509990-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-509990-patch=linaro.org@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id pg17si8972630ejb.288.2019.10.01.10.14.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Oct 2019 10:14:59 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-509990-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=a3GfJori; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lHEid48S; spf=pass (google.com: domain of gcc-patches-return-509990-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-509990-patch=linaro.org@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=d7yd/ib9ygSN6dP7yeCAxfDbexbs/sldoBauhEK4/NmVsg rz8GAhb578hkWN7iF9fnP3c+LvO7halgsek+LgA82OSp9lntNZQOd33uvQrEGbm9 FYu0Y9o7iIezDK8c9Ya/PgSne1GhQCyh/chqzYXhXCEdI37H8Q5NrsFj9n/SU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=WZVWGfff3ezQTRLsATvTH/koqkk=; b=a3GfJoriosjRfCAgjiEf 2ySx3vGZhVORS+d+cVcDNeoyIpawY0OOYZN6hYm4T/jLxX+qX1xtwClmJliQuElr 6NvXDCw29AG2fU+ZuRrvOAsCkW9PnRdga3Xx4+/Zt02iuVLfMEXKM3Q6YMVXSaui 0gahVAXzKHjTpUfLBt5Qm8U= Received: (qmail 33311 invoked by alias); 1 Oct 2019 17:14:46 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 32839 invoked by uid 89); 1 Oct 2019 17:14:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-12.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=tree-if-conv.c, treeifconvc, UD:tree-if-conv.c X-HELO: mail-lj1-f172.google.com Received: from mail-lj1-f172.google.com (HELO mail-lj1-f172.google.com) (209.85.208.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Oct 2019 17:14:44 +0000 Received: by mail-lj1-f172.google.com with SMTP id m7so14240922lji.2 for ; Tue, 01 Oct 2019 10:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=XfNZODV9Zo59Y7gVpXcKWvqpzG4Nl+0AJp9XoMlmcWw=; b=lHEid48S881eCVgmbcZkxH9OLsP7JI2P+wVKFyxfUVUX7qbI9Y2MffJt0ekTFAQZ7y zcQh9mhKrX7745kXb5rVOWZW5jBKD95koIgwRpGkZP5+ZX6hkK+dbwdd7NcvBs27joEd A7OAhHkofgsgYTY9LcCixHDVqM+yKu6Sq7iux/+heBp9WtAU93JhdiawgffzR/LtXSeo 587m2GP/4vxC9/aJdit+40NJ3/A5twNCtDfQMZ8WJ6mmQRkc7BuTfRFcXgyP/1xV5yre q+DGQ22kJpxzk2DtOSobbssbCXMtUdPa8c5hy5TQCN5ECqxYSpO1iv5F//JtDgG+eeDx f11Q== MIME-Version: 1.0 From: Prathamesh Kulkarni Date: Tue, 1 Oct 2019 22:44:07 +0530 Message-ID: Subject: [tree-if-conv.c] Move call to ifcvt_local_dce after rpo vn To: gcc Patches , Richard Biener X-IsSubscribed: yes Hi, The attached patch is committed to trunk after bootstrap+test on x86_64-unknown-linux-gnu. Pre-approved by Richard. Thanks, Prathamesh Index: ChangeLog =================================================================== --- ChangeLog (revision 276416) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2019-10-01 Prathamesh Kulkarni + + * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce + after local CSE. + 2019-10-01 Jan Hubicka * doc/invoke.texi (early-inlining-insns-O2): Document. Index: tree-if-conv.c =================================================================== --- tree-if-conv.c (revision 276416) +++ tree-if-conv.c (working copy) @@ -3060,9 +3060,6 @@ on-the-fly. */ combine_blocks (loop); - /* Delete dead predicate computations. */ - ifcvt_local_dce (loop->header); - /* Perform local CSE, this esp. helps the vectorizer analysis if loads and stores are involved. CSE only the loop body, not the entry PHIs, those are to be kept in sync with the non-if-converted copy. @@ -3071,6 +3068,9 @@ bitmap_set_bit (exit_bbs, single_exit (loop)->dest->index); bitmap_set_bit (exit_bbs, loop->latch->index); todo |= do_rpo_vn (cfun, loop_preheader_edge (loop), exit_bbs); + + /* Delete dead predicate computations. */ + ifcvt_local_dce (loop->header); BITMAP_FREE (exit_bbs); todo |= TODO_cleanup_cfg;