diff options
| author | Vladimir Makarov <vmakarov@redhat.com> | 2008-10-27 16:24:19 +0000 |
|---|---|---|
| committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2008-10-27 16:24:19 +0000 |
| commit | c0683a829001ee2630451cbdbb138fd89cfe0e5f (patch) | |
| tree | 1730ad833e4ff685d5139cd97e10380194193470 /gcc/ira-int.h | |
| parent | 801f03e3d21a96f63249aa22c8716490e14b7c26 (diff) | |
| download | gcc-c0683a829001ee2630451cbdbb138fd89cfe0e5f.zip gcc-c0683a829001ee2630451cbdbb138fd89cfe0e5f.tar.gz gcc-c0683a829001ee2630451cbdbb138fd89cfe0e5f.tar.bz2 | |
re PR middle-end/37813 (assert with IRA_COVER_CLASSES with singleton)
2008-10-27 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/37813
* ira-conflicts.c (process_regs_for_copy): Remove class subset
check.
* ira-int.h (ira_hard_regno_cover_class): New.
* ira-lives.c (mark_reg_live, mark_reg_dead,
process_bb_node_lives): Use ira_hard_regno_cover_class.
* ira.c (reg_class ira_hard_regno_cover_class): New global
variable.
(setup_hard_regno_cover_class): New function.
(ira_init): Call setup_hard_regno_cover_class.
* ira-costs.c (cost_class_nums): Add comment.
(find_allocno_class_costs): Initiate cost_class_nums.
(setup_allocno_cover_class_and_costs): Check cost_class_nums.
From-SVN: r141384
Diffstat (limited to 'gcc/ira-int.h')
| -rw-r--r-- | gcc/ira-int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ira-int.h b/gcc/ira-int.h index fc18cdf..dafcfb7 100644 --- a/gcc/ira-int.h +++ b/gcc/ira-int.h @@ -547,6 +547,11 @@ extern int ira_reg_cost, ira_mem_cost; extern int ira_load_cost, ira_store_cost, ira_shuffle_cost; extern int ira_move_loops_num, ira_additional_jumps_num; +/* Map: hard register number -> cover class it belongs to. If the + corresponding class is NO_REGS, the hard register is not available + for allocation. */ +extern enum reg_class ira_hard_regno_cover_class[FIRST_PSEUDO_REGISTER]; + /* Map: register class x machine mode -> number of hard registers of given class needed to store value of given mode. If the number for some hard-registers of the register class is different, the size |
