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/64317] [5 Regression] Ineffective allocation of PIC base register


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64317

--- Comment #8 from Jeffrey A. Law <law at redhat dot com> ---
And for GCC 5, ISTM the question that hasn't been answered, particularly with
regard to the second reproducer is whether or this is a regression for the
overall performance of that code.

It's certainly possible that IRA determined that %ebx was better used to hold a
different value and that the PIC register might end up in a call-clobbered
register.  If the object in %ebx is heavily used, the benefits of keeping that
value in %ebx may outweigh the cost of having the PIC value in a different
register (say perhaps one that is call-clobbered).


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