Commit 14f2df34 by Segher Boessenkool Committed by Segher Boessenkool

re PR rtl-optimization/59278 (combine does not replace matched insn)

	PR rtl-optimization/59278
	combine (reg_dead_at_p): Consider REG_UNUSED notes.

From-SVN: r218250
parent dd400a36
2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
PR rtl-optimization/59278
combine (reg_dead_at_p): Consider REG_UNUSED notes.
2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
* combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
......@@ -12990,6 +12990,9 @@ reg_dead_at_p (rtx reg, rtx_insn *insn)
{
if (INSN_P (insn))
{
if (find_regno_note (insn, REG_UNUSED, reg_dead_regno))
return 1;
note_stores (PATTERN (insn), reg_dead_at_p_1, NULL);
if (reg_dead_flag)
return reg_dead_flag == 1 ? 1 : 0;
......
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