re PR target/42495 (redundant memory load)

PR target/42495
	PR middle-end/42574
	* gcse.c (hoist_expr_reaches_here_p): Remove excessive check.

From-SVN: r162592
This commit is contained in:
Maxim Kuvyrkov 2010-07-27 19:38:10 +00:00 committed by Maxim Kuvyrkov
parent 3d489bc712
commit c7c910cee2
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
PR target/42495
PR middle-end/42574
* gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
* gcse.c (hoist_code): Generate new pseudo for every new set insn.

View File

@ -4335,9 +4335,6 @@ hoist_expr_reaches_here_p (basic_block expr_bb, int expr_index, basic_block bb,
else if (visited[pred_bb->index])
continue;
/* Does this predecessor generate this expression? */
else if (TEST_BIT (comp[pred_bb->index], expr_index))
break;
else if (! TEST_BIT (transp[pred_bb->index], expr_index))
break;