public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/51782] -ftree-sra: Missing address-space information leads to wrong Date: Fri, 17 Feb 2012 18:01:00 -0000 [thread overview] Message-ID: <bug-51782-4-kmKZkuZKDE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51782-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51782 Martin Jambor <jamborm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #16 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-02-17 17:53:34 UTC --- OK, I clearly misremembered where the address space information is supposed to be stored. Richi's patch in comment #12 clearly shows it's the address operand of MEM_REF should carry that information, so please disregard my previous comment. Nevertheless, during expansion of a COMPONENT_REF or any handled_component we do rely on its type's TYPE_ADDR_SPACE because expand_expr_real_1 calls set_mem_attributes with the whole reference tree to deduce the attributes from and it uses the address space of its type. If only the base object or pointer of a reference is supposed to hold the address space information, then this function needs to be changed to look at the base object. I'll attach an untested patch straight away. Alternatively, we could alter types o references built by SRA at each step (in build_ref_for_offset and build_ref_for_model) which also works (I also have a patch) but would be rather inconsistent with how we expand MEM_REFs (but front-end generated stuff looks like this).
next prev parent reply other threads:[~2012-02-17 17:55 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-07 12:03 [Bug tree-optimization/51782] New: Missing address-space information leads to wrong code gjl at gcc dot gnu.org 2012-01-07 12:04 ` [Bug tree-optimization/51782] " gjl at gcc dot gnu.org 2012-01-07 12:06 ` gjl at gcc dot gnu.org 2012-01-07 12:08 ` gjl at gcc dot gnu.org 2012-01-07 12:10 ` gjl at gcc dot gnu.org 2012-01-07 12:11 ` gjl at gcc dot gnu.org 2012-01-07 12:12 ` gjl at gcc dot gnu.org 2012-01-07 12:17 ` gjl at gcc dot gnu.org 2012-01-09 12:05 ` rguenth at gcc dot gnu.org 2012-01-09 20:30 ` gjl at gcc dot gnu.org 2012-01-12 16:19 ` gjl at gcc dot gnu.org 2012-01-12 17:18 ` [Bug tree-optimization/51782] -ftree-sra: Missing address-space information leads to wrong jamborm at gcc dot gnu.org 2012-01-12 18:09 ` gjl at gcc dot gnu.org 2012-01-17 15:26 ` rguenth at gcc dot gnu.org 2012-01-18 9:34 ` gjl at gcc dot gnu.org 2012-01-25 19:18 ` gjl at gcc dot gnu.org 2012-02-17 13:06 ` jamborm at gcc dot gnu.org 2012-02-17 18:01 ` jamborm at gcc dot gnu.org [this message] 2012-02-17 18:52 ` jamborm at gcc dot gnu.org 2012-02-19 10:16 ` gjl at gcc dot gnu.org 2012-02-20 9:43 ` rguenther at suse dot de 2012-02-20 17:57 ` jamborm at gcc dot gnu.org 2012-02-20 20:15 ` rguenther at suse dot de 2012-02-21 10:14 ` gjl at gcc dot gnu.org 2012-02-21 10:41 ` [Bug middle-end/51782] " jamborm at gcc dot gnu.org 2012-02-21 10:41 ` jamborm at gcc dot gnu.org 2012-02-21 11:51 ` dominiq at lps dot ens.fr 2012-02-21 11:58 ` gjl at gcc dot gnu.org 2012-02-21 13:20 ` jamborm at gcc dot gnu.org 2012-02-22 10:55 ` jamborm at gcc dot gnu.org 2012-02-22 11:00 ` jamborm 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-51782-4-kmKZkuZKDE@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).