From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by sourceware.org (Postfix) with ESMTPS id B4E3D3858C74 for ; Thu, 13 Jul 2023 07:47:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B4E3D3858C74 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-lf1-x135.google.com with SMTP id 2adb3069b0e04-4fb7373dd35so2103081e87.1 for ; Thu, 13 Jul 2023 00:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689234447; x=1691826447; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dO/z3EN+nZ/7na+qJxjfvRww3Gib8dtSge+hy5cAYX0=; b=cl8T/mAKT+z9gxF2oSIeLbDem0dmmeulhF0jI4oJrfidWMkthCBeaZiYjey9WwJW6z LC5XrgSWVFFb72PHvSuXF2ZajlVGlESuLHfiD7iZgk4CY3Ixso2c2YgO893hoXECETQG 1UkeYCxcXvn0PP/kmafGlqgaRpAVCHdNyLoOUXyfJCxPbyRIepS+71s7KYq7V7iOrU+8 HoeLTazRBTe4FFraCq05mXizx7cxjSarlTJ+0t4P1TW0cvwc6QBEQrRDStGYDpQtsauZ 3NMj9K32SbYrPinvjdu2cpc2j5C/zvmrL+O0AOjv/k3Z3o6vtcISjqwnCjN8Yh9+4cSY dYUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689234447; x=1691826447; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dO/z3EN+nZ/7na+qJxjfvRww3Gib8dtSge+hy5cAYX0=; b=Y+Q0+kP2AjFmHsURyguk8mfO2rhXjvRCk8vzJGTQ2R6HuFLUKuQPUVTr7uUTeAFtfd WSxgxznPTnYZ6VrJt6YPJLmmTkUyq8SFXCtIpLSQwJUYyu9zG9HbYWV2qnjRo2oBR1In vjRCkBeaE2MWPnm0NEMJqnan0zTDLGkHzuMQGYICrlXOjYzdGeqDa9BgZFiHLt3dE7qq SzUS+0bR8flVnnOE3zMV//2n3Gc0ZJurk3HRGB8tk/1Jjbjp55IOHpIMtPr78Yt0LNh+ gfCSNTLVe3udX3xo/4fUCz9QQICzXnlGP1MeqtgTlqMeTtMSYNFSvPAJ/mO9E3cGlNJY Ew9g== X-Gm-Message-State: ABy/qLZs0jvcirlv0++wIpT/dGNrFusBR/sy+HgZobWzGRuumjpweeaw pm7iYdOQOj/gnwu+3NHOpl6t4aUi6MBK2fz/WgM= X-Google-Smtp-Source: APBJJlFSnCciunEToGydZwLDzRE4jgjKoK+CrmOVgGiT9anApYGMQv4SlpLAt99QRWO0yLTnmubsq2FlDGU7AW8AaQg= X-Received: by 2002:a05:6512:2395:b0:4eb:46c2:e771 with SMTP id c21-20020a056512239500b004eb46c2e771mr1933749lfv.14.1689234446656; Thu, 13 Jul 2023 00:47:26 -0700 (PDT) MIME-Version: 1.0 References: <20230712093849.102131-1-juzhe.zhong@rivai.ai> <66564378DDCC57ED+202307121748494317959@rivai.ai> <08AD6CC79F68996F+2023071305225689203010@rivai.ai> <241ccf47-0579-7d7b-0dcf-7847328fe7a8@gmail.com> <05d9baab-5734-a870-a700-40443a113318@gmail.com> In-Reply-To: From: Richard Biener Date: Thu, 13 Jul 2023 09:47:02 +0200 Message-ID: Subject: Re: Re: [PATCH V7] RISC-V: RISC-V: Support gather_load/scatter RVV auto-vectorization To: =?UTF-8?B?6ZKf5bGF5ZOy?= Cc: Jeff Law , gcc-patches , "kito.cheng" , "kito.cheng" , "rdapp.gcc" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 List-Id: On Thu, Jul 13, 2023 at 1:30=E2=80=AFAM =E9=92=9F=E5=B1=85=E5=93=B2 wrote: > > I notice vectorizable_call in Loop Vectorizer. > It's vectorizing CALL function for example like fmax/fmin. > From my understanding, we dont have RVV instruction for fmax/fmin? There's things like .POPCOUNT which we can vectorize, but sure, it depends on the ISA if there's anything. > So for now, I don't need to support builtin call function vectorization f= or RVV. > Am I right? > > I am wondering whether we do have some kind of builtin function call vect= orization by using RVV instructions. > > > Thanks. > > > juzhe.zhong@rivai.ai > > From: Jeff Law > Date: 2023-07-13 06:25 > To: =E9=92=9F=E5=B1=85=E5=93=B2; gcc-patches > CC: kito.cheng; kito.cheng; rdapp.gcc > Subject: Re: [PATCH V7] RISC-V: RISC-V: Support gather_load/scatter RVV a= uto-vectorization > > > On 7/12/23 16:17, =E9=92=9F=E5=B1=85=E5=93=B2 wrote: > > Thanks Jeff. > > Will commit with formating the codes. > > > > I am gonna first support COND_FMA and reduction.... first (which I thin= k > > is higher priority). > > Then come back support strided_load/store. > Sure. One thing to note with strided loads, they can significantly > help x264's sad/satd loops. So hopefully you're testing with those :-) > > > > jeff >