diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2002-11-20 17:05:08 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2002-11-20 17:05:08 +0000 |
commit | 3ba2436a67f611be43fc02a1f400a69a95088695 (patch) | |
tree | 5a21a5b3ce2e1fa3f82d686ad108412c7de37ff7 /gcc/recog.c | |
parent | 3ebb998e6fd4db2150c4c60f0977b2b4ca3d39fa (diff) | |
download | gcc-3ba2436a67f611be43fc02a1f400a69a95088695.tar.gz |
recog.c (constrain_operands): Prefer exact match over reloadable EXTRA_MEMORY_CONSTRAINT or...
* recog.c (constrain_operands): Prefer exact match over reloadable
EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.
* reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
operands in Pmode.
From-SVN: r59308
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index 649f3665d10..d1db9c4e69d 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -2628,23 +2628,23 @@ constrain_operands (strict) if (EXTRA_MEMORY_CONSTRAINT (c)) { - /* Every memory operand can be reloaded to fit, - so copy the condition from the 'm' case. */ - if (GET_CODE (op) == MEM - /* Before reload, accept what reload can turn into mem. */ - || (strict < 0 && CONSTANT_P (op)) - /* During reload, accept a pseudo */ - || (reload_in_progress && GET_CODE (op) == REG - && REGNO (op) >= FIRST_PSEUDO_REGISTER)) + /* Every memory operand can be reloaded to fit. */ + if (strict < 0 && GET_CODE (op) == MEM) + win = 1; + + /* Before reload, accept what reload can turn into mem. */ + if (strict < 0 && CONSTANT_P (op)) + win = 1; + + /* During reload, accept a pseudo */ + if (reload_in_progress && GET_CODE (op) == REG + && REGNO (op) >= FIRST_PSEUDO_REGISTER) win = 1; } if (EXTRA_ADDRESS_CONSTRAINT (c)) { - /* Every address operand can be reloaded to fit, - so copy the condition from the 'p' case. */ - if (strict <= 0 - || (strict_memory_address_p (recog_data.operand_mode[opno], - op))) + /* Every address operand can be reloaded to fit. */ + if (strict < 0) win = 1; } #endif |