Commit 0fbac2d1 by Bernd Edlinger Committed by Bernd Edlinger

re PR rtl-optimization/77714 (Wrong code generation for gcc.c-torture/execute/pr51447.c)

2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR rlt-optimization/77714
        * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
        REG_EQUAL note.

From-SVN: r240518
parent 3a4228ba
2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR rlt-optimization/77714
* lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
REG_EQUAL note.
2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
PR ipa/77677
......
......@@ -981,7 +981,7 @@ eliminate_regs_in_insn (rtx_insn *insn, bool replace_p, bool first_p,
}
lra_update_insn_recog_data (insn);
/* Add offset note for future updates. */
add_reg_note (insn, REG_EQUAL, src);
add_reg_note (insn, REG_EQUAL, copy_rtx (src));
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment