diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2011-08-21 02:14:37 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2011-08-21 02:14:37 +0000 |
commit | 5193535841f9a72931e48b9a5b5e4883b736ce0b (patch) | |
tree | 1d23fec65faecc2b5fba42c831d329458ae8bc08 /gcc | |
parent | e60041479dee1651088f700488dcce3d82edff83 (diff) | |
download | gcc-5193535841f9a72931e48b9a5b5e4883b736ce0b.tar.gz |
ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class for ira_reg_class_max_nregs.
2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
* ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
for ira_reg_class_max_nregs. Increase pressure by 1.
(mark_pseudo_regno_subword_dead): Use allocno class
for ira_reg_class_max_nregs.
From-SVN: r177939
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/ira-lives.c | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fa27e3465a..e9f71aced3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-08-20 Vladimir Makarov <vmakarov@redhat.com> + + * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class + for ira_reg_class_max_nregs. Increase pressure by 1. + (mark_pseudo_regno_subword_dead): Use allocno class + for ira_reg_class_max_nregs. + 2011-08-20 Richard Henderson <rth@redhat.com> * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c, diff --git a/gcc/ira-lives.c b/gcc/ira-lives.c index d308bb39de2..9af2f93db95 100644 --- a/gcc/ira-lives.c +++ b/gcc/ira-lives.c @@ -285,7 +285,7 @@ static void mark_pseudo_regno_subword_live (int regno, int subword) { ira_allocno_t a = ira_curr_regno_allocno_map[regno]; - int n, nregs; + int n; enum reg_class pclass; ira_object_t obj; @@ -303,14 +303,14 @@ mark_pseudo_regno_subword_live (int regno, int subword) } pclass = ira_pressure_class_translate[ALLOCNO_CLASS (a)]; - nregs = ira_reg_class_max_nregs[pclass][ALLOCNO_MODE (a)]; - gcc_assert (nregs == n); + gcc_assert + (n == ira_reg_class_max_nregs[ALLOCNO_CLASS (a)][ALLOCNO_MODE (a)]); obj = ALLOCNO_OBJECT (a, subword); if (sparseset_bit_p (objects_live, OBJECT_CONFLICT_ID (obj))) return; - inc_register_pressure (pclass, nregs); + inc_register_pressure (pclass, 1); make_object_born (obj); } @@ -414,7 +414,7 @@ static void mark_pseudo_regno_subword_dead (int regno, int subword) { ira_allocno_t a = ira_curr_regno_allocno_map[regno]; - int n, nregs; + int n; enum reg_class cl; ira_object_t obj; @@ -430,8 +430,8 @@ mark_pseudo_regno_subword_dead (int regno, int subword) return; cl = ira_pressure_class_translate[ALLOCNO_CLASS (a)]; - nregs = ira_reg_class_max_nregs[cl][ALLOCNO_MODE (a)]; - gcc_assert (nregs == n); + gcc_assert + (n == ira_reg_class_max_nregs[ALLOCNO_CLASS (a)][ALLOCNO_MODE (a)]); obj = ALLOCNO_OBJECT (a, subword); if (!sparseset_bit_p (objects_live, OBJECT_CONFLICT_ID (obj))) |