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
This commit is contained in:
Roger Sayle 2005-05-29 18:56:42 +00:00 committed by Roger Sayle
parent 1451cecfe2
commit cb275d32f7
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -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();