re PR bootstrap/41349 (bootstrap comparison failure on sparc-linux)

PR bootstrap/41349
	* reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
	trying to limit the extent of searches in the insn stream.

From-SVN: r151731
This commit is contained in:
Adam Nemet 2009-09-15 22:18:34 +00:00 committed by Adam Nemet
parent d7a9e7c50c
commit e484d1f0a4
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
PR bootstrap/41349
* reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
trying to limit the extent of searches in the insn stream.
2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
Jakub Jelinek <jakub@redhat.com>

View File

@ -1630,13 +1630,14 @@ redundant_insn (rtx insn, rtx target, rtx delay_list)
for (trial = PREV_INSN (target),
insns_to_search = MAX_DELAY_SLOT_INSN_SEARCH;
trial && insns_to_search > 0;
trial = PREV_INSN (trial), --insns_to_search)
trial = PREV_INSN (trial))
{
if (LABEL_P (trial))
return 0;
if (! INSN_P (trial))
if (!NONDEBUG_INSN_P (trial))
continue;
--insns_to_search;
pat = PATTERN (trial);
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)
@ -1735,10 +1736,11 @@ redundant_insn (rtx insn, rtx target, rtx delay_list)
for (trial = PREV_INSN (target),
insns_to_search = MAX_DELAY_SLOT_INSN_SEARCH;
trial && !LABEL_P (trial) && insns_to_search > 0;
trial = PREV_INSN (trial), --insns_to_search)
trial = PREV_INSN (trial))
{
if (!INSN_P (trial))
if (!NONDEBUG_INSN_P (trial))
continue;
--insns_to_search;
pat = PATTERN (trial);
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)