From a04eda631cd2de47aac07433a9292fba8b45ffef Mon Sep 17 00:00:00 2001 From: vmakarov Date: Tue, 20 Nov 2012 21:32:59 +0000 Subject: 2012-11-20 Vladimir Makarov PR rtl-optimization/55396 * lra-constraints.c (get_reload_reg): Change class if it is different from reg class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193678 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/lra-constraints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/lra-constraints.c') diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 9df7b97a34e..63ef155bd45 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -425,7 +425,7 @@ get_reload_reg (enum op_type type, enum machine_mode mode, rtx original, fprintf (lra_dump_file, " Reuse r%d for reload ", regno); print_value_slim (lra_dump_file, original, 1); } - if (rclass != new_class) + if (new_class != lra_get_allocno_class (regno)) change_class (regno, new_class, ", change", false); if (lra_dump_file != NULL) fprintf (lra_dump_file, "\n"); -- cgit v1.2.1