]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
postreload.c (reload_combine_recognize_const_pattern): Move test for limiting the...
authorBernd Schmidt <bernds@codesourcery.com>
Tue, 27 Jul 2010 00:14:26 +0000 (00:14 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 27 Jul 2010 00:14:26 +0000 (00:14 +0000)
* postreload.c (reload_combine_recognize_const_pattern): Move test
for limiting the insn movement to the right scope.

From-SVN: r162550

gcc/ChangeLog
gcc/postreload.c

index 0ef4b455686ebcda790bbd59b3cb7e2c81686597..24e1a9cec8b7418d62f0bced8e78aae7a84e27c9 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * postreload.c (reload_combine_recognize_const_pattern): Move test
+       for limiting the insn movement to the right scope.
+
 2010-07-26  Richard Henderson  <rth@redhat.com>
 
        PR target/44132
index 31012214682ceddf1ebf89e9fc1fcbc8013c2257..2c6a8c590d0f3d58e7f0658c5bf6eb385f4779fd 100644 (file)
@@ -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);