Commit 5f1355ef by Jan Hubicka Committed by Jan Hubicka

ifcvt.c (noce_try_addcc): Do not call emit_conditional_add with weird operands.

Fri Jan 10 22:05:35 CET 2003  Jan Hubicka  <jh@suse.cz>

	* ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
	with weird operands.

From-SVN: r61169
parent 6787cc15
Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
* ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
with weird operands.
2003-01-10 Dale Johannesen <dalej@apple.com>
* calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
......
......@@ -882,6 +882,9 @@ noce_try_addcc (if_info)
enum rtx_code code = reversed_comparison_code (cond, if_info->jump);
/* First try to use addcc pattern. */
if (general_operand (XEXP (cond, 0), VOIDmode)
&& general_operand (XEXP (cond, 1), VOIDmode))
{
start_sequence ();
target = emit_conditional_add (if_info->x, code,
XEXP (cond, 0), XEXP (cond, 1),
......@@ -902,6 +905,7 @@ noce_try_addcc (if_info)
return TRUE;
}
end_sequence ();
}
/* If that fails, construct conditional increment or decrement using
setcc. */
......
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