This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small PATCH to try_swap_copy_prop
- To: gcc-patches at gcc dot gnu dot org
- Subject: Small PATCH to try_swap_copy_prop
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 25 Apr 2001 16:25:37 +0100
A previous patch changed this test from 'insn' to 'set' (while tidying up
other things). This is clearly wrong, and caused a crash in the g++
testsuite when run with optimization. Unfortunately, I don't currently
remember which test.
Applied to trunk and branch. Tested i686-pc-linux-gnu.
2001-04-25 Jason Merrill <jason_merrill@redhat.com>
* loop.c (try_swap_copy_prop): Go back to checking insn.
*** loop.c.~1~ Wed Apr 25 14:31:01 2001
--- loop.c Wed Apr 25 14:29:55 2001
*************** try_swap_copy_prop (loop, replacement, r
*** 9318,9324 ****
break;
}
! if (set)
{
rtx prev_insn;
rtx prev_set;
--- 9318,9324 ----
break;
}
! if (insn != NULL_RTX)
{
rtx prev_insn;
rtx prev_set;