public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103116] SLP vectoriser fails to peel for gaps Date: Fri, 20 May 2022 07:10:06 +0000 [thread overview] Message-ID: <bug-103116-4-BlPFNs2ol3@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103116-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103116 --- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Richard Biener <rguenth@gcc.gnu.org>: https://gcc.gnu.org/g:fdf50499a40399a48ac5e5d521ef93ed302be157 commit r12-8405-gfdf50499a40399a48ac5e5d521ef93ed302be157 Author: Richard Biener <rguenther@suse.de> Date: Wed May 4 10:43:07 2022 +0200 tree-optimization/103116 - SLP permutes and peeling for gaps The testcase shows that we can end up with a contiguous access across loop iterations but by means of permutations the elements accessed might only cover parts of a vector. In this case we end up with GROUP_GAP == 0 but still need to avoid accessing excess elements in the last loop iterations. Peeling for gaps is designed to cover this but a single scalar iteration might not cover all of the excess elements. The following ensures peeling for gaps is done in this situation and when that isn't sufficient because we need to peel more than one iteration (gcc.dg/vect/pr103116-2.c), fail the SLP vectorization. 2022-05-04 Richard Biener <rguenther@suse.de> PR tree-optimization/103116 * tree-vect-stmts.cc (get_group_load_store_type): Handle the case we need peeling for gaps even though GROUP_GAP is zero. * gcc.dg/vect/pr103116-1.c: New testcase. * gcc.dg/vect/pr103116-2.c: Likewise. (cherry picked from commit 52b7b86f8c72eb19e637f1e72ffd10f39b8cb829)
next prev parent reply other threads:[~2022-05-20 7:10 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-07 11:36 [Bug tree-optimization/103116] New: " rsandifo at gcc dot gnu.org 2021-11-08 8:20 ` [Bug tree-optimization/103116] " rguenth at gcc dot gnu.org 2022-05-03 13:19 ` rguenth at gcc dot gnu.org 2022-05-04 7:34 ` rguenth at gcc dot gnu.org 2022-05-04 8:42 ` rguenth at gcc dot gnu.org 2022-05-04 13:05 ` rsandifo at gcc dot gnu.org 2022-05-04 13:06 ` rguenther at suse dot de 2022-05-04 13:12 ` cvs-commit at gcc dot gnu.org 2022-05-04 13:14 ` rguenth at gcc dot gnu.org 2022-05-20 7:10 ` cvs-commit at gcc dot gnu.org [this message] 2022-07-22 11:21 ` cvs-commit at gcc dot gnu.org 2022-07-22 11:23 ` rguenth at gcc dot gnu.org 2024-03-10 4:59 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-103116-4-BlPFNs2ol3@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).