summaryrefslogtreecommitdiff
path: root/gcc/sched-deps.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-03 14:28:28 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-03 14:28:28 +0000
commit1c5ae16e0527891bb3d304384e19e28634124d68 (patch)
tree369f25770be3de9aaf36e88f8b98a74cc252ff44 /gcc/sched-deps.c
parentfa0582d8e79ad3199766b570696c2949d02e2bfc (diff)
downloadgcc-1c5ae16e0527891bb3d304384e19e28634124d68.tar.gz
PR rtl-optimization/54792
* sched-deps.c (find_modifiable_mems): Scan also TAIL insn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r--gcc/sched-deps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
index 6625a53a699..936a1317bb7 100644
--- a/gcc/sched-deps.c
+++ b/gcc/sched-deps.c
@@ -4816,10 +4816,10 @@ find_mem (struct mem_inc_info *mii, rtx *address_of_x)
void
find_modifiable_mems (rtx head, rtx tail)
{
- rtx insn;
+ rtx insn, next_tail = NEXT_INSN (tail);
int success_in_block = 0;
- for (insn = head; insn != tail; insn = NEXT_INSN (insn))
+ for (insn = head; insn != next_tail; insn = NEXT_INSN (insn))
{
struct mem_inc_info mii;