Message ID | CAAgBjMn5RHmbpYEZ=PZTJJ2552+sW0sAgh55+d+kNrDW9VfdvQ@mail.gmail.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp556335vqo; Wed, 26 Jul 2023 10:34:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlE99kubIORdSJvwT1p86DJv2os76hFtG86qszXLRZXZnalF6oYTfwIrcxeR5wa3kryBBBRU X-Received: by 2002:a05:6512:2253:b0:4fd:fef8:7a81 with SMTP id i19-20020a056512225300b004fdfef87a81mr2160132lfu.55.1690392874896; Wed, 26 Jul 2023 10:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690392874; cv=none; d=google.com; s=arc-20160816; b=fvgWpbmPzynaNK85zE6aslIBwIe74Eg3J/2LhtUFwq7QJ6rPO/+Io830ygeByJvV2d SJWOZW80zwwi55V05RD3YmO6jfd6EavO/Aqk/RpC3n7JanPlzx8mmHeEo9KNKw3dUKQn SUPEn/oNokZ8PATsD1e9NcTueEDfBwtbKNtg0nj5MNML/yidj61Mv6OQlZ4azmsnCBPR kReNhXq98RCLYe5Lk4ibu1Qii4t6dcas8WCaaiqZzG79qlshGK6ze+9pBlAHzGm3ewG0 4i2mS02pDDUlPclr18qtgYApKrwt/xajPqE7Aj/awBOvRGPiHqkZYD/s7xcuZiM1Nnop a/fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:to:subject :message-id:date:mime-version:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=mfiRGzomjoJ68JuQniNuqSRxZyQoqVgtAcL5Ylhefd8=; fh=+/hGy2lV2WnVW9PcVDh6q4QqaFxRJY0CgQ66SMIS0QU=; b=l6egf5r+B9a8bJ1NJN3JJTaegkUdSKQMcglX/TWkTF77m89w9eIAInm/knmuKwxVoQ IvsHb63628Vxb5jEaNg57+WAaZHyOtpHkR+OkKgQptQ8/dM17cV0Xg8FPlN+G+oolwtB sxyL6yKWzhrd7cAuQuKR5q2lIrMjPMoAh8QwIYfEcx9OeNGRLLbE0mmv4/FKoslUj/I9 3cc7CZW1KbkmNsxc2jdgZWa6iaTf7t1bsbJSacJNh9r8fGO2sYWNzD8F1k/2Zg9cWBWA eSzBWYi9XHZvzhOfjtA9CkUTYYcX1NsvCV4krJ0jX1Q6yLaH0QeyPnaQAiabNsRSl07N 3QBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mhUgrvGA; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v8-20020a1709060b4800b00997e96fdb73si10302779ejg.296.2023.07.26.10.34.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 10:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mhUgrvGA; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 871D23858C52 for <ouuuleilei@gmail.com>; Wed, 26 Jul 2023 17:34:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 871D23858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690392873; bh=mfiRGzomjoJ68JuQniNuqSRxZyQoqVgtAcL5Ylhefd8=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=mhUgrvGAeLUvUaEGMoHYp1Npul8qU9N1jZNcye3T97THq0021jrXSnsr295kLTrnQ h5VZ/jpdYoZb6FSaY5NUsNCVBDR2PPwVFd4VAw9x/q7gItvxYYT+mAEDKBC4dS/xb5 sZUjwDTx7H1JV5zIf430qhtF7R4kCEkcegnTG1+I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 25FA53858C52 for <gcc-patches@gcc.gnu.org>; Wed, 26 Jul 2023 17:33:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 25FA53858C52 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbd33a57dcso70990605e9.0 for <gcc-patches@gcc.gnu.org>; Wed, 26 Jul 2023 10:33:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690392825; x=1690997625; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mfiRGzomjoJ68JuQniNuqSRxZyQoqVgtAcL5Ylhefd8=; b=itx4fKmnLPH+6tR0aicc+nrWywjinDYlAbQmUsHsF3gTqXciGGwXRSIqfyH8SJW7YF E9u0zJXOzUQtU/8n9jmgLkst+d3iA2F+4CYgfIWwVGU+9VQWQM9RM/2gsVcxShVdrRGT A5zltBw8su3osxFHKU+DiXfIehannACWkEKR1vy14ctx0V3OfP04JK/G3RnrJ+mE3ucJ vQEF3R21OykBYjhsjOoFheLYC4GdC0Sum2yU/QPzVOzI43vEa/reU+hBwzCSW99gmHO8 tXJiWt8y0bwvnIY3+uyaM3vglr+O3PFGGYwc5N3f1pl7BHP0NMdZOh2etNNM3il7i19O 16tA== X-Gm-Message-State: ABy/qLZwmiFXNu6bzj8Gmr0sDPHZEfo0KNTDO2TxIohs7dhXJPjrludc Vy17t6F0QSGxgks5t4s9LdZaGoDtsDmO5GWRXXzp1XwtrqFMT3oH X-Received: by 2002:a5d:6a09:0:b0:314:1483:d8ad with SMTP id m9-20020a5d6a09000000b003141483d8admr2214480wru.44.1690392824803; Wed, 26 Jul 2023 10:33:44 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 26 Jul 2023 23:03:10 +0530 Message-ID: <CAAgBjMn5RHmbpYEZ=PZTJJ2552+sW0sAgh55+d+kNrDW9VfdvQ@mail.gmail.com> Subject: [gcc-13] Backport PR10280 fix To: gcc Patches <gcc-patches@gcc.gnu.org>, Richard Biener <rguenther@suse.de> Content-Type: multipart/mixed; boundary="000000000000daf3e90601673f74" X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Prathamesh Kulkarni via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772505398949235392 X-GMAIL-MSGID: 1772505398949235392 |
Series |
[gcc-13] Backport PR10280 fix
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Prathamesh Kulkarni
July 26, 2023, 5:33 p.m. UTC
Hi Richard, Sorry for the delay in backport to gcc-13. The attached patch (cherry picked from master) is bootstrapped+tested on aarch64-linux-gnu with SVE enabled on gcc-13 branch. OK to commit to gcc-13 branch ? Thanks, Prathamesh [aarch64/match.pd] Fix ICE observed in PR110280. gcc/ChangeLog: PR tree-optimization/110280 * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector using build_vector_from_val with the element of input operand, and mask's type if operand and mask's types don't match. gcc/testsuite/ChangeLog: PR tree-optimization/110280 * gcc.target/aarch64/sve/pr110280.c: New test. (cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
Comments
Sorry, I meant PR110280 in subject line (not PR10280). On Wed, 26 Jul 2023 at 23:03, Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> wrote: > > Hi Richard, > Sorry for the delay in backport to gcc-13. > The attached patch (cherry picked from master) is bootstrapped+tested > on aarch64-linux-gnu with SVE enabled on gcc-13 branch. > OK to commit to gcc-13 branch ? > > Thanks, > Prathamesh
On Wed, 26 Jul 2023, Prathamesh Kulkarni wrote: > Sorry, I meant PR110280 in subject line (not PR10280). OK after 13.2 is released and the branch is open again. Richard. > On Wed, 26 Jul 2023 at 23:03, Prathamesh Kulkarni > <prathamesh.kulkarni@linaro.org> wrote: > > > > Hi Richard, > > Sorry for the delay in backport to gcc-13. > > The attached patch (cherry picked from master) is bootstrapped+tested > > on aarch64-linux-gnu with SVE enabled on gcc-13 branch. > > OK to commit to gcc-13 branch ? > > > > Thanks, > > Prathamesh >
On Thu, 27 Jul 2023 at 12:04, Richard Biener <rguenther@suse.de> wrote: > > On Wed, 26 Jul 2023, Prathamesh Kulkarni wrote: > > > Sorry, I meant PR110280 in subject line (not PR10280). > > OK after 13.2 is released and the branch is open again. Thanks, committed the patch to releases/gcc-13 branch in: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=f4029de35fb1b293a4fd586574b1b4b73ddf7880 Thanks, Prathamesh > > Richard. > > > On Wed, 26 Jul 2023 at 23:03, Prathamesh Kulkarni > > <prathamesh.kulkarni@linaro.org> wrote: > > > > > > Hi Richard, > > > Sorry for the delay in backport to gcc-13. > > > The attached patch (cherry picked from master) is bootstrapped+tested > > > on aarch64-linux-gnu with SVE enabled on gcc-13 branch. > > > OK to commit to gcc-13 branch ? > > > > > > Thanks, > > > Prathamesh > >
diff --git a/gcc/match.pd b/gcc/match.pd index 91182448250..c3bb4fbc0a7 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -8292,7 +8292,14 @@ and, (simplify (vec_perm vec_same_elem_p@0 @0 @1) - @0) + (if (types_match (type, TREE_TYPE (@0))) + @0 + (with + { + tree elem = uniform_vector_p (@0); + } + (if (elem) + { build_vector_from_val (type, elem); })))) /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */ (simplify diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c new file mode 100644 index 00000000000..d3279f38362 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -fdump-tree-optimized" } */ + +#include "arm_sve.h" + +svuint32_t l() +{ + _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0}; + return svld1rq_u32(svptrue_b8(), lanes); +} + +/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */