From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by sourceware.org (Postfix) with ESMTPS id E6121385F01D for ; Thu, 2 Apr 2020 09:21:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E6121385F01D Received: by mail-lj1-x243.google.com with SMTP id p10so2494754ljn.1 for ; Thu, 02 Apr 2020 02:21:46 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KEsAxRJbxCwgOoANdsw0nNWId7qJjzEVHtm705tR9MQ=; b=LhJpMA92mLP50WmihPlNwVd9WKu/ygoJUhvS0OhXHNEmgBdEUkgmrzBBULR5AYsMMw vmbGhlXWSvie076IcK9RjzfCzTP+opLYNG7kv1qYRPdz7Qy7HaUeqwgmKCn46jSLwt0X xfgwgY8Ca5vmyFt8XcGGX9Qh2SysGTVceiJv+eADwKMkw5V4BYnfdgicbcC8xzHhs+x5 D0hziXRf7VU2e65pWIIjDL92RFhyZBU/RjWp0LXKLwbt5f1kCDb7jcfl2r3yvjxxQJUk Fu2VKZmoKiMAscCzsrX4k/N+riXYTKveU77R4QqqLb3DfDcxn3hVdTbQeeAbKE56ej84 Bslw== X-Gm-Message-State: AGi0PuYBrWzg8T3b7/CA4WACAMO/BjeXrfmJGB5hll6Tx+CcM0jF3uUr RbReaS4c8x5qdSAMAun5Yz099Y8cRYZ5byT0X9Y= X-Google-Smtp-Source: APiQypKjjqTHJO5Yx8Lo3l7pJBlwXPjAm9pn2bls2uF9Y5srxSQV73g+fdR65IEhRS9osLKPIZ8vgEtb+wA9WYxYgOs= X-Received: by 2002:a2e:b536:: with SMTP id z22mr1409669ljm.24.1585819305394; Thu, 02 Apr 2020 02:21:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard Biener Date: Thu, 2 Apr 2020 11:21:33 +0200 Message-ID: Subject: Re: [PATCH] Fix PR94401 by considering reverse overrun To: "Kewen.Lin" Cc: GCC Patches , Segher Boessenkool , Bill Schmidt Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_2, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Thu, 02 Apr 2020 09:21:48 -0000 On Thu, Apr 2, 2020 at 9:15 AM Kewen.Lin wrote: > > Hi, > > The commit r10-7415 brings scalar type consideration > to eliminate epilogue peeling for gaps, but it exposed > one problem that the current handling doesn't consider > the memory access type VMAT_CONTIGUOUS_REVERSE, for > which the overrun happens on low address side. This > patch is to make the code take care of it by updating > the offset and construction element order accordingly. > > Bootstrapped/regtested on powerpc64le-linux-gnu P8 > and aarch64-linux-gnu. OK with the formatting changes suggested by Jakub. Richard. > BR, > Kewen > ----------- > gcc/ChangeLog > > 2020-04-02 Kewen Lin > > PR tree-optimization/94401 > * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE > access type when loading halves of vector to avoid peeling for gaps.