Commit a8decb2c by Jeffrey A Law Committed by Jeff Law

loop.c (check_dbra_loop): Make sure initial value is a CONST_INT before trying to normalize it.

	* loop.c (check_dbra_loop): Make sure initial value is a
	CONST_INT before trying to normalize it.

From-SVN: r17352
parent 0e2b736c
Wed Jan 14 01:26:05 1998 Jeffrey A Law (law@cygnus.com)
* loop.c (check_dbra_loop): Make sure initial value is a
CONST_INT before trying to normalize it.
Tue Jan 13 23:27:54 1998 Robert Lipe (robertl@dgii.com)
* sco5.h (ASM_OUTPUT_SECTION_NAME): Refresh from ../svr4.h.
......
......@@ -6214,10 +6214,11 @@ check_dbra_loop (loop_end, insn_count, loop_start)
comparison_val = INTVAL (XEXP (comparison, 1));
initial_value = bl->initial_value;
/* Normalize the initial value if it has no other use
except as a counter. This will allow a few more loops
to be reversed. */
if (no_use_except_counting)
/* Normalize the initial value if it is an integer and
has no other use except as a counter. This will allow
a few more loops to be reversed. */
if (no_use_except_counting
&& GET_CODE (initial_value) == CONST_INT)
{
comparison_val = comparison_val - INTVAL (bl->initial_value);
initial_value = const0_rtx;
......
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