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/52406] [4.7 Regression] likely wrong code bug Date: Tue, 28 Feb 2012 11:32:00 -0000 [thread overview] Message-ID: <bug-52406-4-IDNboA2LU8@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-52406-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52406 --- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-28 11:06:16 UTC --- We have Creating dr for MEM[(int *)&a + 4B] base_address: &a offset from base address: 0 constant offset from base address: 4 step: 0 aligned to: 128 base_object: MEM[(int *)&a + 4B] Creating dr for a[1].f1 base_address: &a offset from base address: 0 constant offset from base address: 4 step: 0 aligned to: 128 base_object: a[0].f1 Access function 0: 1 thus we have an access function for a[1].f1 but no access function for MEM[(int *)&a + 4B]. That should cause it to conflict. (compute_affine_dependence (stmt_a = MEM[(int *)&a + 4B] = 1; ) (stmt_b = D.1724_6 = a[1].f1; ) (Data Dep: #(Data Ref: # bb: 5 # stmt: MEM[(int *)&a + 4B] = 1; # ref: MEM[(int *)&a + 4B]; # base_object: MEM[(int *)&a + 4B]; #) #(Data Ref: # bb: 5 # stmt: D.1724_6 = a[1].f1; # ref: a[1].f1; # base_object: a[0].f1; # Access function 0: 1 #) (no dependence) ) hmpf. dr_may_alias_p returns false because it feeds the oracle with the base objects!
next prev parent reply other threads:[~2012-02-28 11:06 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-02-27 18:15 [Bug c/52406] New: " regehr at cs dot utah.edu 2012-02-27 22:54 ` [Bug tree-optimization/52406] [4.7 Regression] " jakub at gcc dot gnu.org 2012-02-28 9:59 ` jakub at gcc dot gnu.org 2012-02-28 10:21 ` jakub at gcc dot gnu.org 2012-02-28 10:44 ` rguenth at gcc dot gnu.org 2012-02-28 11:32 ` rguenth at gcc dot gnu.org [this message] 2012-02-28 14:37 ` rguenth at gcc dot gnu.org 2012-03-01 11:42 ` rguenth at gcc dot gnu.org 2012-03-02 15:00 ` [Bug tree-optimization/52406] [4.7/4.8 " rguenth at gcc dot gnu.org 2012-03-02 15:05 ` [Bug tree-optimization/52406] [4.7 " rguenth at gcc dot gnu.org 2012-03-14 9:35 ` izamyatin at gmail dot com 2012-04-03 14:33 ` rguenth at gcc dot gnu.org 2012-04-03 14:34 ` 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-52406-4-IDNboA2LU8@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).