From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108539 invoked by alias); 25 Jun 2018 10:02:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 108528 invoked by uid 89); 25 Jun 2018 10:02:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:507 X-HELO: mail-lf0-f46.google.com Received: from mail-lf0-f46.google.com (HELO mail-lf0-f46.google.com) (209.85.215.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Jun 2018 10:02:58 +0000 Received: by mail-lf0-f46.google.com with SMTP id g21-v6so13971141lfb.4 for ; Mon, 25 Jun 2018 03:02:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gqcjaFQPX0ZnMcjcWxtylAzTF6U6rVHh22UrzvzgbJQ=; b=Ev5QRoZwK7u0dgs1J9CtwmRw0Dbqd9vbH2nsEJsmYu/thrJ7M8QpIk7xcePL7SJHr+ UG09MynvV5E1WzsqDbYds1c9UySFnkJ4pCvhL20MymfumtgXUlRlPFXWJgwsynly1PeX To0yVlLtCFFWKRu0dVI8eYf4TckFI4DeF/Yua7LWkAzHM0N639C+s3b6J7Fcq/okdab3 tI4gTGw1ll9aazfD4UcYuDIXsmjyHAx5pw1Z4MaBMj8nFXCj7s8EIjGn3Y/ZpjEPBmgZ hj8vE++ws1YuNR8nCymCYcPq/rEMmr+G7+y9NN5fXd2HBAIE9C5lSgABlc4+h4dJCEhQ Fe1Q== X-Gm-Message-State: APt69E3m6Tfva44QmFjGyFEEwupRXGgIhJ1GJAfCty4GSSefaCC4jP3F 37kuFMKdQXx+x7ZnoAGOKNFhV/zGSdc+VHutzxg= X-Google-Smtp-Source: ADUXVKL94OC68hxpOrIhiFMKbi66CgnJyVgem0qztgJs/E7yFvOh+CuiInLp+76LJmYtmX+jCZaR9VysjcqR/0yHWhw= X-Received: by 2002:a19:5512:: with SMTP id n18-v6mr4871577lfe.133.1529920975982; Mon, 25 Jun 2018 03:02:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard Biener Date: Mon, 25 Jun 2018 10:02:00 -0000 Message-ID: Subject: Re: [PATCH 2/3][POPCOUNT] Check if zero check is done before entering the loop To: Kugan Vivekanandarajah Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg01532.txt.bz2 On Fri, Jun 22, 2018 at 11:14 AM Kugan Vivekanandarajah wrote: > > gcc/ChangeLog: The canonical way is calling simplify_using_initial_conditions on the may_be_zero condition. Richard. > 2018-06-22 Kugan Vivekanandarajah > > * tree-ssa-loop-niter.c (number_of_iterations_popcount): If popcount > argument is checked for zero before entering loop, avoid checking again.