diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-08 23:18:23 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-08 23:18:23 +0000 |
commit | 363f7c88a2da188ed19e01c53d65b982d797e9a8 (patch) | |
tree | 9f8c350b51866e5a98b5e0904a418b2db1f7533f /gcc/ira-costs.c | |
parent | a3b0eb41412dc0d909cbd8764c67da80f6c1c0ca (diff) | |
download | gcc-363f7c88a2da188ed19e01c53d65b982d797e9a8.tar.gz |
2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/49990
* ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
ignore classes which can not change mode.
(find_costs_and_classes): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177575 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira-costs.c')
-rw-r--r-- | gcc/ira-costs.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index 39ef33a541c..39cd432ce09 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -1367,11 +1367,7 @@ print_allocno_costs (FILE *f) for (k = 0; k < cost_classes_ptr->num; k++) { rclass = cost_classes[k]; - if (contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (regno)] -#ifdef CANNOT_CHANGE_MODE_CLASS - && ! invalid_mode_change_p (regno, (enum reg_class) rclass) -#endif - ) + if (contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (regno)]) { fprintf (f, " %s:%d", reg_class_names[rclass], COSTS (costs, i)->cost[k]); @@ -1409,11 +1405,7 @@ print_pseudo_costs (FILE *f) for (k = 0; k < cost_classes_ptr->num; k++) { rclass = cost_classes[k]; - if (contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (regno)] -#ifdef CANNOT_CHANGE_MODE_CLASS - && ! invalid_mode_change_p (regno, (enum reg_class) rclass) -#endif - ) + if (contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (regno)]) fprintf (f, " %s:%d", reg_class_names[rclass], COSTS (costs, regno)->cost[k]); } @@ -1650,11 +1642,7 @@ find_costs_and_classes (FILE *dump_file) rclass = cost_classes[k]; /* Ignore classes that are too small or invalid for this operand. */ - if (! contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (i)] -#ifdef CANNOT_CHANGE_MODE_CLASS - || invalid_mode_change_p (i, (enum reg_class) rclass) -#endif - ) + if (! contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (i)]) continue; if (i_costs[k] < best_cost) { @@ -1725,11 +1713,7 @@ find_costs_and_classes (FILE *dump_file) continue; /* Ignore classes that are too small or invalid for this operand. */ - if (! contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (i)] -#ifdef CANNOT_CHANGE_MODE_CLASS - || invalid_mode_change_p (i, (enum reg_class) rclass) -#endif - ) + if (! contains_reg_of_mode[rclass][PSEUDO_REGNO_MODE (i)]) ; else if (total_a_costs[k] < best_cost) { |