From: Richard Sandiford Date: Mon, 5 Feb 2018 10:47:56 +0000 (+0000) Subject: Adjust ira_init_register_move_cost comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87e176dfd4d2e457353eccd04e99fcb8710fb9f0;p=gcc.git Adjust ira_init_register_move_cost comment 2018-02-05 Richard Sandiford gcc/ * ira.c (ira_init_register_move_cost): Adjust comment. From-SVN: r257385 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91969bdfc3f..363c61774ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-02-05 Richard Sandiford + + * ira.c (ira_init_register_move_cost): Adjust comment. + 2018-02-05 Martin Liska PR gcov-profile/84137 diff --git a/gcc/ira.c b/gcc/ira.c index 0eafa0ab702..b7bcc15a15d 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -1578,8 +1578,10 @@ ira_init_register_move_cost (machine_mode mode) ira_assert (ira_register_move_cost[mode] == NULL && ira_may_move_in_cost[mode] == NULL && ira_may_move_out_cost[mode] == NULL); - /* have_regs_of_mode[mode] might be false because it might be - E_ (see genmodes) of pseudo with . */ + /* Note that we might be asked about the move costs of modes that + cannot be stored in any hard register, for example if an inline + asm tries to create a register operand with an impossible mode. + We therefore can't assert have_regs_of_mode[mode] here. */ for (cl1 = 0; cl1 < N_REG_CLASSES; cl1++) for (cl2 = 0; cl2 < N_REG_CLASSES; cl2++) {