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/66610] Aggregate assignment prevents store-motion Date: Mon, 22 Jun 2015 10:58:00 -0000 [thread overview] Message-ID: <bug-66610-4-klsW29R1v2@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66610-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66610 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-06-22 CC| |rguenth at gcc dot gnu.org Summary|Compound assignments |Aggregate assignment |prevent value-numbering |prevents store-motion |optimization with unions | Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- This isn't about value-numbering but about sinking the stores out of the loop (so it becomes empty). For the field case it is loop store motion that performs this conditional(!?) movement. For the non-field cases it determines a dependence: Memory reference 1: arr_5(D)->union_field.int_field Unanalyzed memory reference 0: MEM[(struct s *)arr_5(D) + 4B].union_field = arr_5(D)->union_field; Querying dependencies of ref 1 in loop 1: dependent because it doesn't handle aggregate assignments (simple_mem_ref_in_stmt fails). Confirmed.
next prev parent reply other threads:[~2015-06-22 10:58 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-06-20 0:53 [Bug tree-optimization/66610] New: Compound assignments prevent value-numbering optimization dmalcolm at gcc dot gnu.org 2015-06-20 0:58 ` [Bug tree-optimization/66610] Compound assignments prevent value-numbering optimization with unions pinskia at gcc dot gnu.org 2015-06-20 9:53 ` dmalcolm at gcc dot gnu.org 2015-06-22 10:58 ` rguenth at gcc dot gnu.org [this message] 2021-07-07 12:09 ` [Bug tree-optimization/66610] Aggregate assignment prevents store-motion 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-66610-4-klsW29R1v2@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).