PR target/81485
* config/sh/sh-protos.h (sh_find_set_of_reg): Remove assert.
From-SVN: r256930
+2018-01-21 Oleg Endo <olegendo@gcc.gnu.org>
+
+ PR target/81485
+ * config/sh/sh-protos.h (sh_find_set_of_reg): Remove assert.
+
2018-01-21 Oleg Endo <olegendo@gcc.gnu.org>
Backport from mainline
}
}
- if (result.set_src != NULL)
- gcc_assert (result.insn != NULL && result.set_rtx != NULL);
-
+ /* If the searched reg is found inside a (mem (post_inc:SI (reg))), set_of
+ will return NULL and set_rtx will be NULL.
+ In this case report a 'not found'. result.insn will always be non-null
+ at this point, so no need to check it. */
+ if (result.set_src != NULL && result.set_rtx == NULL)
+ result.set_src = NULL;
+
return result;
}