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/102139] [11/12 Regression] -O3 miscompile due to slp-vectorize on strict align target Date: Wed, 01 Sep 2021 10:54:26 +0000 [thread overview] Message-ID: <bug-102139-4-Rm2SY0WQSX@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-102139-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102139 --- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>: https://gcc.gnu.org/g:153766ec8351d55cfe8bd6d69bdfc0c2cef71e56 commit r12-3283-g153766ec8351d55cfe8bd6d69bdfc0c2cef71e56 Author: Richard Biener <rguenther@suse.de> Date: Tue Aug 31 10:28:40 2021 +0200 tree-optimization/102139 - fix SLP DR base alignment When doing whole-function SLP we have to make sure the recorded base alignments we compute as the maximum alignment seen for a base anywhere in the function is actually valid at the point we want to make use of it. To make this work we now record the stmt the alignment was derived from in addition to the DRs innermost behavior and we use a dominance check to verify the recorded info is valid when doing BB vectorization. For this to work for groups inside a BB that are separate by a call that might not return we now store the DR analysis group-id permanently and use that for an additional check when the DRs are in the same BB. 2021-08-31 Richard Biener <rguenther@suse.de> PR tree-optimization/102139 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map type to record a std::pair of the stmt-info and the innermost loop behavior. (dr_vec_info::group): New member. * tree-vect-data-refs.c (vect_record_base_alignment): Adjust. (vect_compute_data_ref_alignment): Verify the recorded base alignment can be used. (data_ref_pair): Remove. (dr_group_sort_cmp): Adjust. (vect_analyze_data_ref_accesses): Store the group-ID in the dr_vec_info and operate on a vector of dr_vec_infos. * gcc.dg/torture/pr102139.c: New testcase.
next prev parent reply other threads:[~2021-09-01 10:54 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-31 0:15 [Bug tree-optimization/102139] New: " wilson at gcc dot gnu.org 2021-08-31 0:35 ` [Bug tree-optimization/102139] " pinskia at gcc dot gnu.org 2021-08-31 0:38 ` pinskia at gcc dot gnu.org 2021-08-31 1:24 ` [Bug tree-optimization/102139] [11/12 Regression] " pinskia at gcc dot gnu.org 2021-08-31 1:35 ` pinskia at gcc dot gnu.org 2021-08-31 1:47 ` pinskia at gcc dot gnu.org 2021-08-31 7:38 ` rguenth at gcc dot gnu.org 2021-08-31 10:18 ` rguenth at gcc dot gnu.org 2021-08-31 10:22 ` rguenth at gcc dot gnu.org 2021-09-01 10:54 ` cvs-commit at gcc dot gnu.org [this message] 2021-09-01 10:55 ` [Bug tree-optimization/102139] [11 " rguenth at gcc dot gnu.org 2021-11-08 12:35 ` cvs-commit at gcc dot gnu.org 2021-11-08 12:37 ` rguenth 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-102139-4-Rm2SY0WQSX@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).