From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id CB8243858410 for ; Tue, 26 Oct 2021 10:23:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CB8243858410 Received: by mail-wm1-x333.google.com with SMTP id 67-20020a1c1946000000b0030d4c90fa87so1660260wmz.2 for ; Tue, 26 Oct 2021 03:23:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=pGm9DYah+v/2TFoSltI7zCbbsM1JPmgslhTEQRFVnD0=; b=ejS3WyAOtE3mTkCYUY7qtClOp1fBPIyNRlweurUscjIAFs/uTCgPINZW3khX3uzCia 4uub0Z8PRxcRILWdOyvgNKCou86bpy4f15P4kx1465U2Vumss7HLPAvFmrhobylFPe9t yQNaSQoMlGc6SYYCgYrAfT+yumgPN45Z/d3hKzufAmHwPmc1R+QXpFNNf1A5ppXzq9lk 7VnpE4CTiLRadZrHqxvIWETnHozVrjoJIPaY3AQT8M5MfnQCjWv7+u0SxeO09VvBMRqs 508Ywylv7dFUHL/RLONbjZiceVqsohULmTz3oBSsVI8KS7BUUWOkPXaxhaOjQah2ldWh Zr/w== X-Gm-Message-State: AOAM530QIb1iTapTSwgN+PBFaWuuIecuD0pwmcl5MiajgIVLldt+yEps FvCbMDweWPLHAkeHYeguHyk= X-Google-Smtp-Source: ABdhPJxnva+qdSFsgSCm5bJPnjI+hHBxqHmQfSuWLHtwHpEklMz6Ya60FPdY+1EVcavCcYNIosEO/A== X-Received: by 2002:a05:600c:283:: with SMTP id 3mr26202326wmk.190.1635243805902; Tue, 26 Oct 2021 03:23:25 -0700 (PDT) Received: from [127.0.0.1] (62-46-115-185.adsl.highway.telekom.at. [62.46.115.185]) by smtp.gmail.com with ESMTPSA id p21sm198660wmc.11.2021.10.26.03.23.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Oct 2021 03:23:22 -0700 (PDT) Date: Tue, 26 Oct 2021 12:23:18 +0200 From: Bernhard Reutner-Fischer To: Richard Biener , Richard Biener via Gcc-patches , gcc-patches@gcc.gnu.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH=5D_Turn_vect=5Fcreate=5Faddr=5Fbase=5F?= =?US-ASCII?Q?for=5Fvector=5Fref_offset_into_a_byte_offset?= In-Reply-To: <5350n593-2893-84q-97p-qo6132qrq6q@fhfr.qr> References: <5350n593-2893-84q-97p-qo6132qrq6q@fhfr.qr> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2021 10:23:27 -0000 On 26 October 2021 10:58:50 CEST, Richard Biener via Gcc-patches wrote: >@@ -2006,6 +2011,7 @@ get_negative_load_store_type (vec_info *vinfo, > dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, > "negative step but alignment required=2E\n"); > return VMAT_ELEMENTWISE; >+ *poffset =3D 0; Would you want to move this to before the return? thanks, > } >=20 > if (vls_type =3D=3D VLS_STORE_INVARIANT) >@@ -2014,7 +2020,6 @@ get_negative_load_store_type (vec_info *vinfo, > dump_printf_loc (MSG_NOTE, vect_location, > "negative step with invariant source;" > " no permute needed=2E\n"); >- *poffset =3D -TYPE_VECTOR_SUBPARTS (vectype) + 1; > return VMAT_CONTIGUOUS_DOWN; > }