aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2018-02-05 10:47:56 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2018-02-05 10:47:56 +0000
commit87e176dfd4d2e457353eccd04e99fcb8710fb9f0 (patch)
treec07a26a19e373447bef2f63b07a0ea30ed4267b1 /gcc/ira.c
parentb95852cc0000e768b72a5e53ab9d7fd0c81d9cba (diff)
downloadgcc-87e176dfd4d2e457353eccd04e99fcb8710fb9f0.zip
gcc-87e176dfd4d2e457353eccd04e99fcb8710fb9f0.tar.gz
gcc-87e176dfd4d2e457353eccd04e99fcb8710fb9f0.tar.bz2
Adjust ira_init_register_move_cost comment
2018-02-05 Richard Sandiford <richard.sandiford@linaro.org> gcc/ * ira.c (ira_init_register_move_cost): Adjust comment. From-SVN: r257385
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 0eafa0a..b7bcc15 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_<mode> (see genmodes) of pseudo with <mode>. */
+ /* 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++)
{