re PR rtl-optimization/37769 (internal compiler error: in reg_overlap_mentioned_for_reload_p, at reload.c:6525)
PR rtl-optimization/37769 * regmove.c (optimize_reg_copy_2): Update REG_INC note if needed. From-SVN: r141354
This commit is contained in:
parent
397979fa4d
commit
d3a5ecb5dc
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-10-24 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||
|
||||
PR rtl-optimization/37769
|
||||
* regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.
|
||||
|
||||
2008-10-24 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||
|
||||
* config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
|
||||
|
|
|
@ -685,7 +685,15 @@ optimize_reg_copy_2 (rtx insn, rtx dest, rtx src)
|
|||
{
|
||||
if (reg_mentioned_p (dest, PATTERN (q)))
|
||||
{
|
||||
rtx note;
|
||||
|
||||
PATTERN (q) = replace_rtx (PATTERN (q), dest, src);
|
||||
note = FIND_REG_INC_NOTE (q, dest);
|
||||
if (note)
|
||||
{
|
||||
remove_note (q, note);
|
||||
add_reg_note (q, REG_INC, src);
|
||||
}
|
||||
df_insn_rescan (q);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue