From 682494423e37dd92fa14b7722375a7b2cc6893f5 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 29 Oct 2015 15:48:38 +0000 Subject: [PATCH] omp-low.c (lower_omp_target): Remove unreachable code & merge ifs. * omp-low.c (lower_omp_target): Remove unreachable code & merge ifs. From-SVN: r229535 --- gcc/ChangeLog | 5 +++++ gcc/omp-low.c | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b723870b95..8229fa39c88 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-29 Nathan Sidwell + + * omp-low.c (lower_omp_target): Remove unreachable code & merge + ifs. + 2015-10-29 Marc Glisse * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity. diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 1c4bbca77e3..d0264e9ce67 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -15929,14 +15929,12 @@ lower_omp_target (gimple_stmt_iterator *gsi_p, omp_context *ctx) } break; } + gimple_seq_add_seq (&new_body, tgt_body); + if (offloaded) new_body = maybe_catch_exception (new_body); - } - else if (data_region) - new_body = tgt_body; - if (offloaded || data_region) - { + gimple_seq_add_stmt (&new_body, gimple_build_omp_return (false)); gimple_omp_set_body (stmt, new_body); } -- 2.30.2