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: 1170087 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-509990-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="XMJ8Vs0M"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="lHEid48S"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46jQqz1YRBz9s4Y for ; Wed, 2 Oct 2019 03:14:53 +1000 (AEST) 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=LkVtkw3OJaxMRpr+o4THmrdoSkWGF48cjxBhslcHxJiifk kdY2vDdv9pdT6nxJbahgvJZNO63Br6eM/GQpdRF2OHzTeajeTFdq0Na8ItpKj568 G9Ngtca2wqSbXlBpdzjbHJqMzFEwS5c8nd0rKtK6a7ZKCPd5CVG4rrHBDnTbk= 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=XMJ8Vs0MlNNZJCQMRCUl UOv6C8lhMoAduzGk3QTbTXn48z5sbzButHMBRJ65fjwUTYuiaATwj8Mn/0R8r2pb oTWwbJh6IVObXXktxnZLB264vVr9363608gQ7gdqtX0B0C7TvJqiHNq5V2XEo9MU v/XaGWMj/WRQJLiMdhP93WU= 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;