aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-04-21 11:40:46 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-04-21 11:40:46 +0000
commitc4d281b29a03c1e7637936434a04e9a419f22c00 (patch)
treec25284f96a167e670591c7a8289f962d38b6e60e /gcc/omp-low.c
parent8409e468a5f94b7577ccfa073f8b859481a86800 (diff)
downloadgcc-c4d281b29a03c1e7637936434a04e9a419f22c00.zip
gcc-c4d281b29a03c1e7637936434a04e9a419f22c00.tar.gz
gcc-c4d281b29a03c1e7637936434a04e9a419f22c00.tar.bz2
cfghooks.h (create_basic_block): Replace with two overloads for RTL and GIMPLE.
2015-04-21 Richard Biener <rguenther@suse.de> * cfghooks.h (create_basic_block): Replace with two overloads for RTL and GIMPLE. (split_block): Likewise. * cfghooks.c (split_block): Rename to ... (split_block_1): ... this. (split_block): Add two type-safe overloads for RTL and GIMPLE. (split_block_after_labels): Call split_block_1. (create_basic_block): Rename to ... (create_basic_block_1): ... this. (create_basic_block): Add two type-safe overloads for RTL and GIMPLE. (create_empty_bb): Call create_basic_block_1. * cfgrtl.c (fixup_fallthru_exit_predecessor): Use split_block_after_labels. * omp-low.c (expand_parallel_call): Likewise. (expand_omp_target): Likewise. (simd_clone_adjust): Likewise. * tree-chkp.c (chkp_get_entry_block): Likewise. * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE create_basic_block overload. (cgraph_node::expand_thunk): Likewise. * tree-cfg.c (make_blocks): Likewise. (handle_abnormal_edges): Likewise. * tree-inline.c (copy_bb): Likewise. From-SVN: r222264
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 835ff71..34e2e5c 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -4937,7 +4937,7 @@ expand_parallel_call (struct omp_region *region, basic_block bb,
tmp_join = tmp_var;
}
- e = split_block (bb, NULL);
+ e = split_block_after_labels (bb);
cond_bb = e->src;
bb = e->dest;
remove_edge (e);
@@ -9052,7 +9052,7 @@ expand_omp_target (struct omp_region *region)
tmp_var = create_tmp_var (TREE_TYPE (device));
if (offloaded)
- e = split_block (new_bb, NULL);
+ e = split_block_after_labels (new_bb);
else
{
gsi = gsi_last_bb (new_bb);
@@ -13339,7 +13339,7 @@ simd_clone_adjust (struct cgraph_node *node)
e = split_block (incr_bb, gsi_stmt (gsi));
basic_block latch_bb = e->dest;
basic_block new_exit_bb;
- new_exit_bb = split_block (latch_bb, NULL)->dest;
+ new_exit_bb = split_block_after_labels (latch_bb)->dest;
loop->latch = latch_bb;
redirect_edge_succ (FALLTHRU_EDGE (latch_bb), body_bb);