From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110146 invoked by alias); 1 Oct 2015 06:42:26 -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 110135 invoked by uid 89); 1 Oct 2015 06:42:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mail2-relais-roc.national.inria.fr Received: from mail2-relais-roc.national.inria.fr (HELO mail2-relais-roc.national.inria.fr) (192.134.164.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 01 Oct 2015 06:42:23 +0000 Received: from 89-158-40-219.rev.numericable.fr (HELO laptop-mg.local) ([89.158.40.219]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2015 08:42:06 +0200 Date: Thu, 01 Oct 2015 06:42:00 -0000 From: Marc Glisse Reply-To: gcc-patches@gcc.gnu.org To: Michael Collison cc: gcc-patches@gcc.gnu.org, Richard Biener , Jeff Law Subject: Re: [PATCH] Optimize certain end of loop conditions into min/max operation In-Reply-To: <560CC744.4040704@linaro.org> Message-ID: References: <55B5A884.4060105@linaro.org> <55B65A4B.3050705@redhat.com> <55BBA052.2060900@redhat.com> <55BBBBE6.2070207@linaro.org> <55BBBE2E.1020408@redhat.com> <55FBAFD1.9080300@linaro.org> <560B8F51.6030108@linaro.org> <560C0D65.2010300@linaro.org> <560CC744.4040704@linaro.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-SW-Source: 2015-10/txt/msg00008.txt.bz2 On Wed, 30 Sep 2015, Michael Collison wrote: > Richard and Marc, > > Latest patch attached which incorporates all comments. > > 2015-09-30 Michael Collison > Andrew Pinski > > * match.pd ((x < y) && (x < z) -> x < min (y,z), > (x > y) and (x > z) -> x > max (y,z)) > * testsuite/gcc.dg/tree-ssa/minmax-loopend.c: New test. You are still missing at least the indentation. +/* { dg-final { scan-tree-dump "MIN_EXPR" 1 "optimized" } } */ I believe it is only scan-tree-dump-times that takes a number. scan-tree-dump seems to have only 2 arguments. -- Marc Glisse