summaryrefslogtreecommitdiff
path: root/gcc/postreload.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-27 00:14:26 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-27 00:14:26 +0000
commit6aba0ea1163ca03b1eab41fa4001cddf82c25485 (patch)
treed721c98b006d8efd3d6d7f3fa5760f4f7b5faae0 /gcc/postreload.c
parentcffbbb9de6dd1d57639ccf61d76209e46c9bcbdb (diff)
downloadgcc-6aba0ea1163ca03b1eab41fa4001cddf82c25485.tar.gz
* postreload.c (reload_combine_recognize_const_pattern): Move test
for limiting the insn movement to the right scope. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162550 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/postreload.c')
-rw-r--r--gcc/postreload.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c
index 31012214682..2c6a8c590d0 100644
--- a/gcc/postreload.c
+++ b/gcc/postreload.c
@@ -955,8 +955,8 @@ reload_combine_recognize_const_pattern (rtx insn)
&& reg_state[clobbered_regno].real_store_ruid >= use_ruid)
break;
- /* Avoid moving a use of ADDREG past a point where it
- is stored. */
+ gcc_assert (reg_state[regno].store_ruid <= use_ruid);
+ /* Avoid moving a use of ADDREG past a point where it is stored. */
if (reg_state[REGNO (addreg)].store_ruid >= use_ruid)
break;
@@ -1033,10 +1033,10 @@ reload_combine_recognize_const_pattern (rtx insn)
}
}
}
- /* If we get here, we couldn't handle this use. */
- if (must_move_add)
- break;
}
+ /* If we get here, we couldn't handle this use. */
+ if (must_move_add)
+ break;
}
while (use);