From 26ba4aeef6c188260472e687ee164a9c5f8955ef Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 10 Mar 1995 11:50:49 -0800 Subject: [PATCH] (find_reloads, case 'o'): Accept a fully reloaded auto-increment address. From-SVN: r9168 --- gcc/reload.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/reload.c b/gcc/reload.c index 0c00ffc4f23..4ba5627a5df 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -2802,6 +2802,14 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) reject that case. */ && (ind_levels ? offsettable_memref_p (operand) : offsettable_nonstrict_memref_p (operand))) + /* A reloaded auto-increment address is offsettable, + because it is now just a simple register indirect. */ + || (GET_CODE (operand) == MEM + && address_reloaded[i] + && (GET_CODE (XEXP (operand, 0)) == PRE_INC + || GET_CODE (XEXP (operand, 0)) == PRE_DEC + || GET_CODE (XEXP (operand, 0)) == POST_INC + || GET_CODE (XEXP (operand, 0)) == POST_DEC)) /* Certain mem addresses will become offsettable after they themselves are reloaded. This is important; we don't want our own handling of unoffsettables -- 2.30.2