Commit c431e499 by Kazu Hirata

lcm.c (optimize_mode_switching): Free ptr even when mode_set is NULL_RTX.

	* lcm.c (optimize_mode_switching): Free ptr even when mode_set
	is NULL_RTX.

From-SVN: r92044
parent 00fc055e
2004-12-11 Roger Sayle <roger@eyesopen.com> 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
* lcm.c (optimize_mode_switching): Free ptr even when mode_set
is NULL_RTX.
2004-12-12 Roger Sayle <roger@eyesopen.com>
* reg-stack.c (change_stack): Avoid placing the new top-of-stack in * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
its correct location during popping if we need to permute the stack its correct location during popping if we need to permute the stack
......
...@@ -1274,17 +1274,17 @@ optimize_mode_switching (FILE *file) ...@@ -1274,17 +1274,17 @@ optimize_mode_switching (FILE *file)
mode_set = get_insns (); mode_set = get_insns ();
end_sequence (); end_sequence ();
/* Do not bother to insert empty sequence. */ /* Insert MODE_SET only if it is nonempty. */
if (mode_set == NULL_RTX) if (mode_set != NULL_RTX)
continue; {
emited = true;
emited = true; if (NOTE_P (ptr->insn_ptr)
if (NOTE_P (ptr->insn_ptr) && (NOTE_LINE_NUMBER (ptr->insn_ptr)
&& (NOTE_LINE_NUMBER (ptr->insn_ptr) == NOTE_INSN_BASIC_BLOCK))
== NOTE_INSN_BASIC_BLOCK)) emit_insn_after (mode_set, ptr->insn_ptr);
emit_insn_after (mode_set, ptr->insn_ptr); else
else emit_insn_before (mode_set, ptr->insn_ptr);
emit_insn_before (mode_set, ptr->insn_ptr); }
} }
free (ptr); free (ptr);
......
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