This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36084] not folding of (int[<unknown>] *) &i[0] into &i
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Oct 2010 00:45:57 +0000
- Subject: [Bug tree-optimization/36084] not folding of (int[<unknown>] *) &i[0] into &i
- Auto-submitted: auto-generated
- References: <bug-36084-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36084
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-19 00:45:53 UTC ---
Fixed by the MEM_REF work done by Richard Guenther.
We get now:
D.2070_2 = MEM[(int[<unknown>] *)&i][0];
Which gets converted correctly for SRA to:
i$0_4 = 0;
...
D.2070_2 = i$0_4;