diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-06-07 13:22:26 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-06-07 11:22:26 +0000 |
commit | ce120587f3810484e8b939b7df69320d9f39420c (patch) | |
tree | ac682fe7cfb00fbb346d33d65ef0332beab85aad /gcc/tree-ssa-loop-ch.c | |
parent | 701b9a47bd1a19ba1625a5f1ecbc4b7d064c7e10 (diff) | |
download | gcc-ce120587f3810484e8b939b7df69320d9f39420c.zip gcc-ce120587f3810484e8b939b7df69320d9f39420c.tar.gz gcc-ce120587f3810484e8b939b7df69320d9f39420c.tar.bz2 |
gimple.c: Include builtins.h
* gimple.c: Include builtins.h
(gimple_inexpensive_call_p): New function.
* gimple.h (gimple_inexpensive_call_p): Declare.
* tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
fix formatting.
From-SVN: r237172
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
-rw-r--r-- | gcc/tree-ssa-loop-ch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c index 3af09ec..0ddbda6 100644 --- a/gcc/tree-ssa-loop-ch.c +++ b/gcc/tree-ssa-loop-ch.c @@ -118,7 +118,8 @@ should_duplicate_loop_header_p (basic_block header, struct loop *loop, if (is_gimple_debug (last)) continue; - if (is_gimple_call (last)) + if (gimple_code (last) == GIMPLE_CALL + && !gimple_inexpensive_call_p (as_a <gcall *> (last))) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, |