From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14386 invoked by alias); 24 May 2017 08:44:01 -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 14370 invoked by uid 89); 24 May 2017 08:44:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:CAFiYyc X-HELO: mail-oi0-f48.google.com Received: from mail-oi0-f48.google.com (HELO mail-oi0-f48.google.com) (209.85.218.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 24 May 2017 08:43:59 +0000 Received: by mail-oi0-f48.google.com with SMTP id w10so233419677oif.0 for ; Wed, 24 May 2017 01:44:03 -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=g7YtX2nX012vCJVjJGyuUQE9wArvTcjnO/W5V0FUwyI=; b=fgNOL+qHvYOezdr1IQwQ/IxK6B6eAo+cEMELK8V9/ITr9r1jR3N1SueD7cA7I7pbdj caTXCtw16oKwAIWZbGI2Jt1XsAqv8JtQIxp09J4etlcXvvAQCo2AB/l5SYQcQtiZR3UH oEbX+74rk7h25DAJErSNmZ9iQeVfA4grf7U+Gh9t+5i1cc1pAlCEEJe4uvO9gRArGeZ8 NhmFqfkFU6/aIJgLRZqggKI+64lpgR/LA9IB7xpR5tkhCZ0tcGTOJWluICHohZTU7gCL HE9tl8kbcf6H2HPj6lxd6PwFQdNAVNtQ8yzz0SgGdnsiO1H0QpNAcNUORC7Zmzw/CBGk I4hg== X-Gm-Message-State: AODbwcDQrg++xEfWauXXS/bp/AMmB480TprKSvCVGRsjJwaiu0XZmP8w wqIqkx2SQFovLaIpib62BzICkdgxJA== X-Received: by 10.202.50.213 with SMTP id y204mr17979784oiy.164.1495615441680; Wed, 24 May 2017 01:44:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.51.83 with HTTP; Wed, 24 May 2017 01:44:01 -0700 (PDT) In-Reply-To: References: From: Richard Biener Date: Wed, 24 May 2017 08:47:00 -0000 Message-ID: Subject: Re: Allow some NOP conversions in (X+CST1)+CST2 in match.pd To: Marc Glisse Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg01836.txt.bz2 On Sun, May 21, 2017 at 9:22 PM, Marc Glisse wrote: > Hello, > > generalizing a bit one transformation, to avoid a regression with another > patch I am working on. Handling conversions always gets messy :-( It would > have been easier to stick to scalars and wide_int, but since the existing > transformation handles vectors, I didn't want to regress. The pattern looks a bit unwieldly now ;) I pondered a bit but couldn't really find a better way to handle things. Thus, ok. Richard. > Bootstrap+testsuite on powerpc64le-unknown-linux-gnu. > > 2017-05-22 Marc Glisse > > gcc/ > * match.pd ((A +- CST1) +- CST2): Allow some conversions. > * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST. > > gcc/testsuite/ > * gcc.dg/tree-ssa/addadd.c: New file. > > -- > Marc Glisse