diff options
author | Pat Haugen <pthaugen@us.ibm.com> | 2004-07-29 14:49:22 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2004-07-29 10:49:22 -0400 |
commit | 727d709b73dbf2bcb675e33d8fab34e2b2218133 (patch) | |
tree | e47884bc158f810bb28401260833e164be0f927e /gcc/ra.h | |
parent | a639e504d8f710bc95d6f05cf2054636c9789c42 (diff) | |
download | gcc-727d709b73dbf2bcb675e33d8fab34e2b2218133.zip gcc-727d709b73dbf2bcb675e33d8fab34e2b2218133.tar.gz gcc-727d709b73dbf2bcb675e33d8fab34e2b2218133.tar.bz2 |
ra.h (single_reg_in_regclass): Declare.
2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
* ra.h (single_reg_in_regclass): Declare.
* ra.c (single_reg_in_regclass): Define.
(first_hard_reg): New.
(init_ra): Initialize single_reg_in_regclass.
* ra-colorize.c (ok_class): New.
(coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
From-SVN: r85300
Diffstat (limited to 'gcc/ra.h')
-rw-r--r-- | gcc/ra.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -503,6 +503,9 @@ extern HARD_REG_SET never_use_colors; extern HARD_REG_SET usable_regs[N_REG_CLASSES]; /* For each class C the count of hardregs in usable_regs[C]. */ extern unsigned int num_free_regs[N_REG_CLASSES]; +/* For each class C which has num_free_regs[C]==1, the color of the + single register in that class, -1 otherwise. */ +extern int single_reg_in_regclass[N_REG_CLASSES]; /* For each mode M the hardregs, which are MODE_OK for M, and have enough space behind them to hold an M value. Additionally if reg R is OK for mode M, but it needs two hardregs, then R+1 will |