Commit 2cbd94af by Richard Guenther Committed by Richard Biener

graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.

2012-09-11  Richard Guenther  <rguenther@suse.de>

	* graphite-scop-detection.c (move_sd_regions): Adjust for VEC
	changes.
	(scopdet_basic_block_info): Likewise.
	(build_scops_1): Likewise.
	(limit_scops): Likewise.

From-SVN: r191175
parent 5a27a197
2012-09-11 Richard Guenther <rguenther@suse.de> 2012-09-11 Richard Guenther <rguenther@suse.de>
* graphite-scop-detection.c (move_sd_regions): Adjust for VEC
changes.
(scopdet_basic_block_info): Likewise.
(build_scops_1): Likewise.
(limit_scops): Likewise.
2012-09-11 Richard Guenther <rguenther@suse.de>
PR middle-end/54515 PR middle-end/54515
* gimple.c (get_base_address): Do not return NULL_TREE apart * gimple.c (get_base_address): Do not return NULL_TREE apart
from for WITH_SIZE_EXPR. from for WITH_SIZE_EXPR.
......
...@@ -143,7 +143,7 @@ move_sd_regions (VEC (sd_region, heap) **source, ...@@ -143,7 +143,7 @@ move_sd_regions (VEC (sd_region, heap) **source,
int i; int i;
FOR_EACH_VEC_ELT (sd_region, *source, i, s) FOR_EACH_VEC_ELT (sd_region, *source, i, s)
VEC_safe_push (sd_region, heap, *target, s); VEC_safe_push (sd_region, heap, *target, *s);
VEC_free (sd_region, heap, *source); VEC_free (sd_region, heap, *source);
} }
...@@ -500,7 +500,7 @@ scopdet_basic_block_info (basic_block bb, loop_p outermost_loop, ...@@ -500,7 +500,7 @@ scopdet_basic_block_info (basic_block bb, loop_p outermost_loop,
sd_region open_scop; sd_region open_scop;
open_scop.entry = bb; open_scop.entry = bb;
open_scop.exit = exit_e->dest; open_scop.exit = exit_e->dest;
VEC_safe_push (sd_region, heap, *scops, &open_scop); VEC_safe_push (sd_region, heap, *scops, open_scop);
VEC_free (sd_region, heap, regions); VEC_free (sd_region, heap, regions);
} }
} }
...@@ -756,7 +756,7 @@ build_scops_1 (basic_block current, loop_p outermost_loop, ...@@ -756,7 +756,7 @@ build_scops_1 (basic_block current, loop_p outermost_loop,
else if (in_scop && (sinfo.exits || sinfo.difficult)) else if (in_scop && (sinfo.exits || sinfo.difficult))
{ {
open_scop.exit = current; open_scop.exit = current;
VEC_safe_push (sd_region, heap, *scops, &open_scop); VEC_safe_push (sd_region, heap, *scops, open_scop);
in_scop = false; in_scop = false;
} }
...@@ -771,7 +771,7 @@ build_scops_1 (basic_block current, loop_p outermost_loop, ...@@ -771,7 +771,7 @@ build_scops_1 (basic_block current, loop_p outermost_loop,
{ {
open_scop.exit = sinfo.exit; open_scop.exit = sinfo.exit;
gcc_assert (open_scop.exit); gcc_assert (open_scop.exit);
VEC_safe_push (sd_region, heap, *scops, &open_scop); VEC_safe_push (sd_region, heap, *scops, open_scop);
} }
result.exit = sinfo.exit; result.exit = sinfo.exit;
...@@ -1205,7 +1205,7 @@ limit_scops (VEC (scop_p, heap) **scops) ...@@ -1205,7 +1205,7 @@ limit_scops (VEC (scop_p, heap) **scops)
&& contains_only_close_phi_nodes (open_scop.exit)) && contains_only_close_phi_nodes (open_scop.exit))
open_scop.exit = single_succ_edge (open_scop.exit)->dest; open_scop.exit = single_succ_edge (open_scop.exit)->dest;
VEC_safe_push (sd_region, heap, regions, &open_scop); VEC_safe_push (sd_region, heap, regions, open_scop);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment