Commit 77b7a218 by Jan Hubicka Committed by Jan Hubicka

combine-stack-adj.c (combine_stack_adjustments_for_block): Remove ARG_SIZE note…

combine-stack-adj.c (combine_stack_adjustments_for_block): Remove ARG_SIZE note when adjustment was eliminated.

	* combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
	ARG_SIZE note when adjustment was eliminated.

From-SVN: r206943
parent bb50b870
2014-01-22 Jan Hubicka <jh@suse.cz>
* combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
ARG_SIZE note when adjustment was eliminated.
2014-01-22 Jeff Law <law@redhat.com>
PR tree-optimization/59597
......
......@@ -567,6 +567,7 @@ combine_stack_adjustments_for_block (basic_block bb)
&& try_apply_stack_adjustment (insn, reflist, 0,
-last_sp_adjust))
{
rtx note;
if (last2_sp_set)
maybe_move_args_size_note (last2_sp_set, last_sp_set, false);
else
......@@ -576,6 +577,11 @@ combine_stack_adjustments_for_block (basic_block bb)
reflist = NULL;
last_sp_set = NULL_RTX;
last_sp_adjust = 0;
/* We no longer adjust stack size. Whoever adjusted it earlier
hopefully got the note right. */
note = find_reg_note (insn, REG_ARGS_SIZE, NULL_RTX);
if (note)
remove_note (insn, note);
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