From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9881 invoked by alias); 18 Jul 2017 11:22:53 -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 9869 invoked by uid 89); 18 Jul 2017 11:22:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1505 X-HELO: mail-lf0-f50.google.com Received: from mail-lf0-f50.google.com (HELO mail-lf0-f50.google.com) (209.85.215.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Jul 2017 11:22:51 +0000 Received: by mail-lf0-f50.google.com with SMTP id w198so10838457lff.2 for ; Tue, 18 Jul 2017 04:22:50 -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:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Sr41uiHA4rqisMKJAmEdUxYdMXzNsIO6LuuWu5hwmsI=; b=Im3wRewHe2zN43ARJ2CVma6cMG+gttMRDsHaUbMwj+/z8RHnceAiLtq6MAWSCsqacA RENdvv6q8KEHft7tYo582qhu3tNJW6dUh9Rs1q2IUcZ3bH24+vE1b/CgL8vpMySOmQ9t e+VZkaR0xkBgSB182hUZDptc8tbOdIJCWeQY9IcWEzONxFNgYPYVMukec3adN+E2tXB2 MxPRyzwpxFlxfR/MP/RU33SU8YoXhZ8bBL0rlYyisMXRVd35pKd2bQs5+oig+35mYyhr e3ESfLvZzH9QqlzZjkp9W2whPMQZw1V6M+N2TqjCHTzKS7KRJxqV58Hx3MmjIZo+FEdh arZA== X-Gm-Message-State: AIVw1110C5D2iFX14cSA9jJlIX6a3hdQ8ST768d5JAec8PQFOUIrtsOt NQtAjMB5d/ImfwqxYTC76hX+fHqBqw== X-Received: by 10.46.82.80 with SMTP id g77mr451838ljb.139.1500376969088; Tue, 18 Jul 2017 04:22:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.31.134 with HTTP; Tue, 18 Jul 2017 04:22:48 -0700 (PDT) In-Reply-To: References: From: Richard Biener Date: Tue, 18 Jul 2017 11:22:00 -0000 Message-ID: Subject: Re: [PATCH PR81408]Turn TREE level unsafe loop optimizations warning to missed optimization message To: "Bin.Cheng" Cc: "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg01052.txt.bz2 On Tue, Jul 18, 2017 at 11:13 AM, Bin.Cheng wrote: > On Tue, Jul 18, 2017 at 9:31 AM, Richard Biener > wrote: >> On Tue, Jul 18, 2017 at 10:00 AM, Bin Cheng wrote: >>> Hi, >>> I removed unsafe loop optimization on TREE level last year, so GCC doesn't do unsafe >>> loop optimizations on TREE now. All "unsafe loop optimizations" warnings reported by >>> TREE optimizers are simply missed optimizations. This patch turns such warning into >>> missed optimization messages. I didn't change when this will be dumped, for now it is >>> when called from ivopts. >>> Bootstrap and test on x86_64 and AArch64. Is it OK? >> >> Ok but can you change the testcase to not scan the ivopts dump but use >> -fopt-info-loop-missed? >> You should be able to match the output with dg-message. > Thanks for reviewing. New patch with test case updated accordingly. Is it OK? Ok. Richard. > Thanks, > bin >> >> Thanks, >> Richard. >> >>> Thanks, >>> bin >>> 2017-07-13 Bin Cheng >>> >>> PR target/81408 >>> * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed >>> optimization for loop niter analysis. >>> >>> gcc/testsuite/ChangeLog >>> 2017-07-13 Bin Cheng >>> >>> PR target/81408 >>> * g++.dg/tree-ssa/pr81408.C: New. >>> * gcc.dg/tree-ssa/pr19210-1.c: Check dump message rather than warning.