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 rs6000] Increase register move cost for LR/CTR


The following patch increases the register move cost for LR/CTR moves in
order to bias register spill to memory instead of these SPRs.  I ran
cpu2000 with/without the patch on both Power5 and Power6 with overall spec
results both coming in in the noise range (Power5 < 1% degradation, Power6
< 1% improvement)

Bootstrapped and regtested on powerpc64-linux with no new errors.  OK for
trunk?


2008-04-15  Pat Haugen  <pthaugen@us.ibm.com>

      * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
of
      LR/CTR moves.


(See attached file: reg_cost.diff)


-Pat

Attachment: reg_cost.diff
Description: Binary data


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