Commit 07b38331 by Bernd Schmidt Committed by Bernd Schmidt

Don't make something with an autoinc an equivalencing insn (PR69752).

	PR rtl-optimization/69752
	* ira.c (update_equiv_regs): When looking for more than a single SET,
	also take other side effects into account.

From-SVN: r233423
parent 7e2507a5
2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
PR rtl-optimization/69752
* ira.c (update_equiv_regs): When looking for more than a single SET,
also take other side effects into account.
2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
* config/s390/s390.c (s390_function_profiler): Add a new sequence
......
......@@ -3392,7 +3392,8 @@ update_equiv_regs (void)
/* If this insn contains more (or less) than a single SET,
only mark all destinations as having no known equivalence. */
if (set == NULL_RTX)
if (set == NULL_RTX
|| side_effects_p (SET_SRC (set)))
{
note_stores (PATTERN (insn), no_equiv, NULL);
continue;
......
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