diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2011-04-08 15:49:43 +0400 |
---|---|---|
committer | Alexander Monakov <amonakov@gcc.gnu.org> | 2011-04-08 15:49:43 +0400 |
commit | 07643d76c74845e250bdedca6b7148ebccff780b (patch) | |
tree | b24f6232438679f7da43611698b485f6401bd044 /gcc/cfgloop.h | |
parent | 1f3b2b4e2914cbb5750e23acf609c5c5b7ca42a3 (diff) | |
download | gcc-07643d76c74845e250bdedca6b7148ebccff780b.zip gcc-07643d76c74845e250bdedca6b7148ebccff780b.tar.gz gcc-07643d76c74845e250bdedca6b7148ebccff780b.tar.bz2 |
re PR target/48273 (ICE: in create_copy_of_insn_rtx, at sel-sched-ir.c:5604 with -fsel-sched-pipelining -fselective-scheduling2 -march=core2)
PR target/48273
* cfgloop.h (loop_has_exit_edges): New helper.
* sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
non-clonable.
* sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
that have no exit edges.
testsuite:
* g++.dg/opt/pr48273.C: New.
From-SVN: r172175
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r-- | gcc/cfgloop.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index f7bb134..0ff44de 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -443,6 +443,14 @@ loop_outer (const struct loop *loop) return VEC_index (loop_p, loop->superloops, n - 1); } +/* Returns true if LOOP has at least one exit edge. */ + +static inline bool +loop_has_exit_edges (const struct loop *loop) +{ + return loop->exits->next->e != NULL; +} + /* Returns the list of loops in current_loops. */ static inline VEC (loop_p, gc) * |