reload1.c (forget_old_reloads_1): Adjust CLOBBER_HIGH assert.
authorJeff Law <law@redhat.com>
Mon, 6 Aug 2018 13:49:10 +0000 (07:49 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 6 Aug 2018 13:49:10 +0000 (07:49 -0600)
* reload1.c (forget_old_reloads_1): Adjust CLOBBER_HIGH
assert.

From-SVN: r263333

gcc/ChangeLog
gcc/reload1.c

index 78e51d29f73c821b2f121b69d824b871a98e48d1..c17a55ce83705eaedb08598b296a0b3a73e4ef09 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-06  Jeff Law  <law@redhat.com>
+
+       * reload1.c (forget_old_reloads_1): Adjust CLOBBER_HIGH
+       assert.
+
 2018-08-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
        PR target/86662
index 8e15160c6adc7100944f39dd1d161380cec43466..3c0c9ff982fcbd4daba481c62a486e02b74ffbdd 100644 (file)
@@ -4931,7 +4931,7 @@ forget_old_reloads_1 (rtx x, const_rtx setter,
     return;
 
   /* CLOBBER_HIGH is only supported for LRA.  */
-  gcc_assert (GET_CODE (setter) != CLOBBER_HIGH);
+  gcc_assert (setter == NULL_RTX || GET_CODE (setter) != CLOBBER_HIGH);
 
   regno = REGNO (x);