aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-05-28 05:59:30 -0600
committerJeff Law <law@gcc.gnu.org>1998-05-28 05:59:30 -0600
commitad729076948bd9e78db712bbf3dbfa0688e6a68a (patch)
tree693ecaa30a43dfd8a890b713aae0b926163bebd7
parentf4d1453e0fd2f1175bb5bcd6556842d9f7d7aea6 (diff)
downloadgcc-ad729076948bd9e78db712bbf3dbfa0688e6a68a.zip
gcc-ad729076948bd9e78db712bbf3dbfa0688e6a68a.tar.gz
gcc-ad729076948bd9e78db712bbf3dbfa0688e6a68a.tar.bz2
reload.c (find_reloads): Do not force a reloads of match_operators.
8 * reload.c (find_reloads): Do not force a reloads of match_operators. From-SVN: r20122
-rw-r--r--gcc/reload.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 8bfcbed..694c236 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -2763,8 +2763,9 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
int earlyclobber = 0;
/* If the predicate accepts a unary operator, it means that
- we need to reload the operand. */
- if (GET_RTX_CLASS (GET_CODE (operand)) == '1')
+ we need to reload the operand, but do not do this for
+ match_operator and friends. */
+ if (GET_RTX_CLASS (GET_CODE (operand)) == '1' && *p != 0)
operand = XEXP (operand, 0);
/* If the operand is a SUBREG, extract