From: Bernd Schmidt Date: Tue, 27 Jul 2010 00:14:26 +0000 (+0000) Subject: postreload.c (reload_combine_recognize_const_pattern): Move test for limiting the... X-Git-Tag: releases/gcc-4.6.0~5415 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62036819d49e8cfecdb3cb6ce282d123971e2fe4;p=thirdparty%2Fgcc.git postreload.c (reload_combine_recognize_const_pattern): Move test for limiting the insn movement to the right scope. * postreload.c (reload_combine_recognize_const_pattern): Move test for limiting the insn movement to the right scope. From-SVN: r162550 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ef4b455686e..24e1a9cec8b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-27 Bernd Schmidt + + * postreload.c (reload_combine_recognize_const_pattern): Move test + for limiting the insn movement to the right scope. + 2010-07-26 Richard Henderson PR target/44132 diff --git a/gcc/postreload.c b/gcc/postreload.c index 31012214682c..2c6a8c590d0f 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);