diff options
Diffstat (limited to 'gcc/recog.c')
| -rw-r--r-- | gcc/recog.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index 7b5ca8b..a9d3b1f 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -2773,8 +2773,12 @@ constrain_operands (int strict, alternative_mask alternatives) /* Every memory operand can be reloaded to fit. */ && ((strict < 0 && MEM_P (op)) /* Before reload, accept what reload can turn - into mem. */ + into a mem. */ || (strict < 0 && CONSTANT_P (op)) + /* Before reload, accept a pseudo, + since LRA can turn it into a mem. */ + || (strict < 0 && targetm.lra_p () && REG_P (op) + && REGNO (op) >= FIRST_PSEUDO_REGISTER) /* During reload, accept a pseudo */ || (reload_in_progress && REG_P (op) && REGNO (op) >= FIRST_PSEUDO_REGISTER))) |
