From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by sourceware.org (Postfix) with ESMTPS id 9A36E3858D28 for ; Mon, 31 Oct 2022 21:42:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9A36E3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102a.google.com with SMTP id b11so11504094pjp.2 for ; Mon, 31 Oct 2022 14:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=g8Pe4tG5Zo4EC/5f7gwM8Ozn0FP0KKAAR7YnbYY5D9c=; b=mtclOc6syZNErBdCo5XH0l/wTdPFnYk8w1hB+m2PVsV+DY5eJ+jYjM4zoCat19n1qI sSVNKrfoyrrbXpncOF/GLOJeTSnQSfRWLsNnJts2Fg5yOmt92zKyclZtuyZ8aEKJSFXA kTYt/txBrP6mKqITS83oEqy8l9ACCVEZlGauQc4Z+dxCLwXusDE08noWCK6fFUnHz9LQ f68QZ3G1JNu1igXU7L2IbHJgHTsKee207RlywNC/KJDnBWLuzkIXlOwmcRt83mqg9uam FS3D84hnFuuJegzBGEdwJnKhsg+QTvM0HhjnyDJycyWjmnXnEb1mcYbJNBauYSCBZxTM 7ACA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g8Pe4tG5Zo4EC/5f7gwM8Ozn0FP0KKAAR7YnbYY5D9c=; b=yPP4O1JFG0OXrS+S73aFyFdqkJkKq2r7aYOaSNE2i+PwTfe/zgs45StIe/5cwVCcqD Y0NedvCVrHGWKd0rnMHXDpqHx0IBpX1FEA4yWY3lw7fWhM5l6CLrXMiNOsVs2ZlV8uEg xXUht142k66Ilj1QKzlX7aoacveqbz3/tVIzUJENwOhLVGob0iy68VzDvqiXxkiOBviP Fz7X/n6G6qQYXvpZjPaRF3ciDRPvk5IVzX129R5tPjtDMqAC974vjPE7kwHxt8tD9zdD N+KzsH2Sk9xhMTeMr3z6ipwvkqYRqhXENTz4tr+ZkypXZnLAui2rdO6FyYrBrFHePHo7 1YkQ== X-Gm-Message-State: ACrzQf2WUJcjD95IQRmIFqgPaarIchZRcPC9bpktkuOnzH0KYJiEeHrq 5BWe75IpHSR5P6ltxkgwgHo= X-Google-Smtp-Source: AMsMyM7lC2DVHB+A3Hst2oLDI3ZFxLT3Des8e/Is9+N0cNHLn8Ht7rRYiHjY7yU1PGykfA5rXz1I7g== X-Received: by 2002:a17:90a:2bcb:b0:20a:ea55:32ef with SMTP id n11-20020a17090a2bcb00b0020aea5532efmr33924203pje.59.1667252553612; Mon, 31 Oct 2022 14:42:33 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id s14-20020a170902ea0e00b001785fa792f4sm4925177plg.243.2022.10.31.14.42.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Oct 2022 14:42:32 -0700 (PDT) Message-ID: Date: Mon, 31 Oct 2022 15:42:31 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 2/8]middle-end: Recognize scalar widening reductions Content-Language: en-US To: Tamar Christina , gcc-patches@gcc.gnu.org Cc: nd@arm.com, rguenther@suse.de References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 10/31/22 05:57, Tamar Christina wrote: > Hi All, > > This adds a new optab and IFNs for REDUC_PLUS_WIDEN where the resulting > scalar reduction has twice the precision of the input elements. > > At some point in a later patch I will also teach the vectorizer to recognize > this builtin once I figure out how the various bits of reductions work. > > For now it's generated only by the match.pd pattern. > > Bootstrapped Regtested on aarch64-none-linux-gnu, x86_64-pc-linux-gnu > and no issues. > > Ok for master? > > Thanks, > Tamar > > gcc/ChangeLog: > > * internal-fn.def (REDUC_PLUS_WIDEN): New. > * doc/md.texi: Document it. > * match.pd: Recognize widening plus. > * optabs.def (reduc_splus_widen_scal_optab, > reduc_uplus_widen_scal_optab): New. OK jeff