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]

[patch 0/3] New macro PREFERRED_RENAME_CLASS


Hi,
Current register-rename pass in GCC doesn't take any preference for
different register classes.  This patch set is to address it.  On ARM,
for example, preference to LOW registers in thumb-2 may help to reduce
code size.  It might be helpful to other ports also.

With this patch, the text size of bash (compiled with -Os
-frename-regster -march=armv7-a -mthumb)is reduced from 502200 to 501128.

Regression tested on arm-unknown-linux-gnueabi and i686-pc-linux-gnu.
No regression.

Comments are welcome.

-- 
Yao Qi
CodeSourcery
yao@codesourcery.com
(650) 331-3385 x739


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