This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/46556] Code size regression in struct access
- From: "amodra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 Nov 2010 23:09:25 +0000
- Subject: [Bug rtl-optimization/46556] Code size regression in struct access
- Auto-submitted: auto-generated
- References: <bug-46556-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46556
--- Comment #1 from Alan Modra <amodra at gmail dot com> 2010-11-21 23:09:13 UTC ---
I believe this code size regression is due to the fix for #32698. Before that
change, gcc calculated the offset for accessing the array elements as
n*4
64+n*4
128+n*4
After, we get
n*4
(n+16)*4
(n+32)*4
and cse doesn't see the optimization opportunity.