Commit 40d7a3fe by Nick Burrett Committed by Jeff Law

gcse.c (delete_null_pointer_checks_1): Cope when get_condition cannot determine the condition.

	* gcse.c (delete_null_pointer_checks_1): Cope when
	get_condition cannot determine the condition.

From-SVN: r31347
parent d2f5d3b8
Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
* gcse.c (delete_null_pointer_checks_1): Cope when
get_condition cannot determine the condition.
2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
* toplev.h (set_message_length): Declare.
......
......@@ -5131,6 +5131,10 @@ delete_null_pointer_checks_1 (block_reg, nonnull_avin, nonnull_avout, npi)
/* LAST_INSN is a conditional jump. Get its condition. */
condition = get_condition (last_insn, &earliest);
/* If we can't determine the condition then skip. */
if (! condition)
continue;
/* Is the register known to have a nonzero value? */
if (!TEST_BIT (nonnull_avout[bb], block_reg[bb] - npi->min_reg))
continue;
......
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