summaryrefslogtreecommitdiff
path: root/gcc/sched-rgn.c
diff options
context:
space:
mode:
authormkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-23 18:23:53 +0000
committermkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-23 18:23:53 +0000
commite5f7d6dac7f35e3a0a83de2425b459a861f8a11c (patch)
treecba1bf3ad44f7516e9b9ac11a9cbb19a5bd336b2 /gcc/sched-rgn.c
parentb5c0ec3d6a91f73e9bdf518a55d63bb3b716acd7 (diff)
downloadgcc-e5f7d6dac7f35e3a0a83de2425b459a861f8a11c.tar.gz
2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
* haifa-sched.c (choose_ready): Fix type of the local variable. Move local variables. Add comment. (check_reg_live): Change signature. Make callable from debugger. * sched-int.h (check_reg_live): Update signature. * sched-ebb.c (check_reg_live): Update parameters. * sched-rgn.c (check_reg_live): Ditto. (region_head_or_leaf_p): Check pointer before dereferencing. * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation before reload on optimization levels below 1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112328 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-rgn.c')
-rw-r--r--gcc/sched-rgn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c
index 77eec4b0df0..a4f037e5351 100644
--- a/gcc/sched-rgn.c
+++ b/gcc/sched-rgn.c
@@ -3020,7 +3020,7 @@ schedule_insns (void)
: (PROP_DEATH_NOTES | PROP_REG_INFO)));
#ifdef ENABLE_CHECKING
- check_reg_live ();
+ check_reg_live (true);
#endif
}
@@ -3266,7 +3266,8 @@ region_head_or_leaf_p (basic_block bb, int leaf_p)
i = CONTAINING_RGN (bb->index);
FOR_EACH_EDGE (e, ei, bb->succs)
- if (CONTAINING_RGN (e->dest->index) == i
+ if (e->dest != EXIT_BLOCK_PTR
+ && CONTAINING_RGN (e->dest->index) == i
/* except self-loop. */
&& e->dest != bb)
return 0;