Commit cb275d32 by Roger Sayle Committed by Roger Sayle

ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly if the RHS isn't…

ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly if the RHS isn't suitable for calling...


	* ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
	if the RHS isn't suitable for calling emit_move_insn.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r100329
parent 1451cecf
2005-05-29 Roger Sayle <roger@eyesopen.com>
Richard Henderson <rth@redhat.com>
* ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
if the RHS isn't suitable for calling emit_move_insn.
2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-ccp.c (ccp_fold): Return immediately after calling
......
......@@ -691,7 +691,11 @@ noce_emit_move_insn (rtx x, rtx y)
optab ot;
start_sequence ();
insn = emit_move_insn (x, y);
/* Check that the SET_SRC is reasonable before calling emit_move_insn,
otherwise construct a suitable SET pattern ourselves. */
insn = (OBJECT_P (y) || CONSTANT_P (y) || GET_CODE (y) == SUBREG)
? emit_move_insn (x, y)
: emit_insn (gen_rtx_SET (VOIDmode, x, y));
seq = get_insns ();
end_sequence();
......
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