diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-21 02:14:37 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-21 02:14:37 +0000 |
commit | 342f23d299925064c73982c6a939d1380f4c98e0 (patch) | |
tree | 1d23fec65faecc2b5fba42c831d329458ae8bc08 /gcc/ira-lives.c | |
parent | c0f6cb25c8f039a3e0480ddfacf52d2d7610dbd7 (diff) | |
download | gcc-342f23d299925064c73982c6a939d1380f4c98e0.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177939 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira-lives.c')
-rw-r--r-- | gcc/ira-lives.c | 14 |
1 files changed, 7 insertions, 7 deletions
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))) |