re PR rtl-optimization/54792 (-fcompare-debug failures introduced by r191493)

PR rtl-optimization/54792
	* sched-deps.c (find_modifiable_mems): Scan also TAIL insn.

From-SVN: r192038
This commit is contained in:
Jakub Jelinek 2012-10-03 16:28:28 +02:00 committed by Jakub Jelinek
parent 75ab707c75
commit 8b8de8b62c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-10-03 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/54792
* sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
PR target/54785

View File

@ -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;