diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-16 16:45:44 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-16 16:45:44 +0000 |
commit | 3cafcd208bc63954c0440da210594850c46af23f (patch) | |
tree | 43b7642e6ba0465e4a784b763d07ca8ebb802582 /gcc/reorg.c | |
parent | 81acd162118ee452e748ec3af1630742e79457bc (diff) | |
download | gcc-3cafcd208bc63954c0440da210594850c46af23f.tar.gz |
2009-09-16 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 151762
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@151766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r-- | gcc/reorg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index 4453ccabca6..4871b0e8c29 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -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) |