diff options
Diffstat (limited to 'gcc/ira-costs.c')
-rw-r--r-- | gcc/ira-costs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index a93985b..795238f 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -763,6 +763,12 @@ record_reg_classes (int n_alts, int n_ops, rtx *ops, classes[i] = ira_reg_class_subunion[classes[i]][cl]; break; + case CT_CONST_INT: + if (CONST_INT_P (op) + && insn_const_int_ok_for_constraint (INTVAL (op), cn)) + win = 1; + break; + case CT_MEMORY: /* Every MEM can be reloaded to fit. */ insn_allows_mem[i] = allows_mem[i] = 1; |