From 9f24cc73613940d9c96c8857b92c805126f34873 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 19 Jun 2005 13:27:04 +0000 Subject: [PATCH] loop.c (scan_loop): Do not consider insns setting the frame pointer to be candidates for hoisting. * loop.c (scan_loop): Do not consider insns setting the frame pointer to be candidates for hoisting. From-SVN: r101182 --- gcc/ChangeLog | 5 +++++ gcc/loop.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cedf800..af13fe0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-19 Ulrich Weigand + + * loop.c (scan_loop): Do not consider insns setting the frame + pointer to be candidates for hoisting. + 2005-06-19 Uros Bizjak * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, cmpfp_0_xf): diff --git a/gcc/loop.c b/gcc/loop.c index a25c1c0..7da65db 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -1135,6 +1135,7 @@ scan_loop (struct loop *loop, int flags) if (! in_libcall && (set = single_set (p)) && REG_P (SET_DEST (set)) + && SET_DEST (set) != frame_pointer_rtx #ifdef PIC_OFFSET_TABLE_REG_CALL_CLOBBERED && SET_DEST (set) != pic_offset_table_rtx #endif -- 2.7.4