This is the mail archive of the gcc-patches@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]

[committed] Always force (const (plus (symbol) (const_int))) to const mem


In spite of the relocation, this sequence is shorter than loading the constant and symbol_ref independently
when the constant doesn't fit in 14 bits.  So, I believe this is a win.

I've also added a REG_EQUAL note to improve optimization.

Tested on hppa-unknown-linux-gnu, hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Committed to
trunk.

Dave
--
John David Anglin	dave.anglin@bell.net


Attachment: pa.c.d.txt
Description: Text document


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