aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-04-15 08:01:01 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-04-15 08:01:01 +0000
commit718c46016e9b47d4771a9bda0da34dcc6f149e0a (patch)
treec69fd1fc4cb66f4513f0321b78b2af763ccd4971 /gcc/tree-inline.c
parentd2994b806914cf8468d9707ded03e2d14e146a88 (diff)
downloadgcc-718c46016e9b47d4771a9bda0da34dcc6f149e0a.zip
gcc-718c46016e9b47d4771a9bda0da34dcc6f149e0a.tar.gz
gcc-718c46016e9b47d4771a9bda0da34dcc6f149e0a.tar.bz2
cfgloop.h (struct loop): Move force_vectorize down.
* cfgloop.h (struct loop): Move force_vectorize down. * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds. (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak. * lto-streamer-in.c (input_cfg): Read dont_vectorize field. * lto-streamer-out.c (output_cfg): Write dont_vectorize field. * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds. * tree-core.h (enum annot_expr_kind): Add new kind values. * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder. * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new kinds. * tree.def (ANNOTATE_EXPR): Tweak comment. ada/ * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints. From-SVN: r209403
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 7133c3c..dea8521 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -2349,17 +2349,18 @@ copy_loops (copy_body_data *id,
place_new_loop (cfun, dest_loop);
flow_loop_tree_node_add (dest_parent, dest_loop);
- if (src_loop->simduid)
- {
- dest_loop->simduid = remap_decl (src_loop->simduid, id);
- cfun->has_simduid_loops = true;
- }
+ dest_loop->safelen = src_loop->safelen;
+ dest_loop->dont_vectorize = src_loop->dont_vectorize;
if (src_loop->force_vectorize)
{
dest_loop->force_vectorize = true;
cfun->has_force_vectorize_loops = true;
}
- dest_loop->safelen = src_loop->safelen;
+ if (src_loop->simduid)
+ {
+ dest_loop->simduid = remap_decl (src_loop->simduid, id);
+ cfun->has_simduid_loops = true;
+ }
/* Recurse. */
copy_loops (id, dest_loop, src_loop);