This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/46556] Code size regression in struct access


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]