Commit 9cb66714 by Bernd Schmidt Committed by Bernd Schmidt

Don't combine calls into i3, it wouldn't be changed into a CALL_INSN.

	* combine.c (try_combine): Don't allow a call as one of the source
	insns.

From-SVN: r217197
parent dc2af904
2014-11-06 Bernd Schmidt <bernds@codesourcery.com> 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
* combine.c (try_combine): Don't allow a call as one of the source
insns.
* target.def (decl_end): New hook. * target.def (decl_end): New hook.
* varasm.c (assemble_variable_contents, assemble_constant_contents): * varasm.c (assemble_variable_contents, assemble_constant_contents):
Use it. Use it.
...@@ -2553,7 +2553,10 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0, ...@@ -2553,7 +2553,10 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0,
/* Exit early if one of the insns involved can't be used for /* Exit early if one of the insns involved can't be used for
combinations. */ combinations. */
if (cant_combine_insn_p (i3) if (CALL_P (i2)
|| (i1 && CALL_P (i1))
|| (i0 && CALL_P (i0))
|| cant_combine_insn_p (i3)
|| cant_combine_insn_p (i2) || cant_combine_insn_p (i2)
|| (i1 && cant_combine_insn_p (i1)) || (i1 && cant_combine_insn_p (i1))
|| (i0 && cant_combine_insn_p (i0)) || (i0 && cant_combine_insn_p (i0))
......
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