public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101925] [10/11/12 Regression] reversed storage order when compiling with -O3 only since r10-4742-g9b75f56d4b7951c6 Date: Mon, 16 Aug 2021 08:22:34 +0000 [thread overview] Message-ID: <bug-101925-4-rcHuPf5wtT@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101925-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101925 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 CC| |ebotcazou at gcc dot gnu.org Status|NEW |ASSIGNED Target Milestone|--- |10.4 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Hmm, I suppose when the vectorizer detects grouped loads/stores in vect_analyze_data_ref_accesses we have to give up. OTOH even w/o grouped loads the vectorizer will rewrite a.b.c[i] to MEM_REFs based on 'a' and thus not properly retain the reverse storage attributes. Which means a fix in vect_analyze_data_refs would be better? OTOH other loop optimizations also rely on refs that pass through data-ref analysis to be reconstructible from the analyzed base + offset so even better fail in data-ref analysis already? I suppose that for regular loop opts it might work to just set REF_REVERSE_STORAGE_ORDER on a MEM_REF created from base + offset when the original DR_REF had that set? But when vectorizing we're using a vector type for the access and clearly the storage order bits apply to the component (which we _usually_ do not change). Eric, any suggestions? Given the above I'd just fix vect_analyze_data_refs and leave other loop opts "latent" (I can't actually think of a broken one)?
next prev parent reply other threads:[~2021-08-16 8:22 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-15 23:43 [Bug c/101925] New: reversed storage order when compiling with -O3 only george.thopas at gmail dot com 2021-08-15 23:50 ` [Bug tree-optimization/101925] " pinskia at gcc dot gnu.org 2021-08-16 8:08 ` [Bug tree-optimization/101925] [10/11/12 Regression] " marxin at gcc dot gnu.org 2021-08-16 8:22 ` rguenth at gcc dot gnu.org [this message] 2021-08-16 9:27 ` [Bug tree-optimization/101925] [10/11/12 Regression] reversed storage order when compiling with -O3 only since r10-4742-g9b75f56d4b7951c6 ebotcazou at gcc dot gnu.org 2021-08-16 10:45 ` rguenth at gcc dot gnu.org 2021-08-16 11:20 ` rguenth at gcc dot gnu.org 2021-08-16 12:20 ` ebotcazou at gcc dot gnu.org 2021-08-16 13:16 ` rguenther at suse dot de 2021-08-16 13:21 ` rguenth at gcc dot gnu.org 2021-08-17 7:25 ` cvs-commit at gcc dot gnu.org 2021-09-06 8:50 ` [Bug tree-optimization/101925] [10/11 " cvs-commit at gcc dot gnu.org 2021-10-13 11:09 ` [Bug tree-optimization/101925] [10 " cvs-commit at gcc dot gnu.org 2021-10-13 11:10 ` 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-101925-4-rcHuPf5wtT@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).