re PR rtl-optimization/48170 (ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1})

PR rtl-optimization/48170
	* gcse.c (hoist_code): Remove bogus asserts.

From-SVN: r171155
This commit is contained in:
Maxim Kuvyrkov 2011-03-18 17:12:19 +00:00 committed by Maxim Kuvyrkov
parent 2a3d7659c5
commit 2d36b47ff5
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
PR rtl-optimization/48170
* gcse.c (hoist_code): Remove bogus asserts.
2011-03-18 Georg-Johann Lay <avr@gjlay.de>
* ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost

View File

@ -4520,9 +4520,7 @@ hoist_code (void)
{
/* An occurence might've been already deleted
while processing a dominator of BB. */
if (occr->deleted_p)
gcc_assert (MAX_HOIST_DEPTH > 1);
else
if (!occr->deleted_p)
{
gcc_assert (NONDEBUG_INSN_P (occr->insn));
hoistable++;
@ -4554,10 +4552,7 @@ hoist_code (void)
/* An occurence might've been already deleted
while processing a dominator of BB. */
if (occr->deleted_p)
{
gcc_assert (MAX_HOIST_DEPTH > 1);
continue;
}
continue;
gcc_assert (NONDEBUG_INSN_P (occr->insn));
max_distance = expr->max_distance;