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> 2003-01-10 Dale Johannesen <dalej@apple.com>
* calls.c (load_register_parameters): Add is_sibcall, sibcall_failure * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
......
...@@ -882,6 +882,9 @@ noce_try_addcc (if_info) ...@@ -882,6 +882,9 @@ noce_try_addcc (if_info)
enum rtx_code code = reversed_comparison_code (cond, if_info->jump); enum rtx_code code = reversed_comparison_code (cond, if_info->jump);
/* First try to use addcc pattern. */ /* First try to use addcc pattern. */
if (general_operand (XEXP (cond, 0), VOIDmode)
&& general_operand (XEXP (cond, 1), VOIDmode))
{
start_sequence (); start_sequence ();
target = emit_conditional_add (if_info->x, code, target = emit_conditional_add (if_info->x, code,
XEXP (cond, 0), XEXP (cond, 1), XEXP (cond, 0), XEXP (cond, 1),
...@@ -902,6 +905,7 @@ noce_try_addcc (if_info) ...@@ -902,6 +905,7 @@ noce_try_addcc (if_info)
return TRUE; return TRUE;
} }
end_sequence (); end_sequence ();
}
/* If that fails, construct conditional increment or decrement using /* If that fails, construct conditional increment or decrement using
setcc. */ 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