aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira-build.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-08-16 14:27:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-08-16 14:27:51 +0000
commitf5843d08b462559af731ed7bd40f2d8e7a1b47e1 (patch)
tree376f51f58149bf3a9c71811ae304381e607e6ff2 /gcc/ira-build.c
parent0c8036f70a641b1821290e0c7f35c5a911a4a77a (diff)
downloadgcc-f5843d08b462559af731ed7bd40f2d8e7a1b47e1.zip
gcc-f5843d08b462559af731ed7bd40f2d8e7a1b47e1.tar.gz
gcc-f5843d08b462559af731ed7bd40f2d8e7a1b47e1.tar.bz2
re PR middle-end/54146 (Very slow compile with attribute((flatten)))
2012-08-16 Richard Guenther <rguenther@suse.de> PR middle-end/54146 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the exit vector. * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK. * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix. * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc. * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed. * tree-ssa-loop-im.c (analyze_memory_references): Adjust. (tree_ssa_lim_finalize): Free all mem_refs. * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free scc when bailing out. * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK. * ira-build.c (loop_with_complex_edge_p): Free loop exit vector. * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use FOR_EACH_LOOP_BREAK. From-SVN: r190445
Diffstat (limited to 'gcc/ira-build.c')
-rw-r--r--gcc/ira-build.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ira-build.c b/gcc/ira-build.c
index d0d4495..dba1d46 100644
--- a/gcc/ira-build.c
+++ b/gcc/ira-build.c
@@ -1846,15 +1846,21 @@ loop_with_complex_edge_p (struct loop *loop)
edge_iterator ei;
edge e;
VEC (edge, heap) *edges;
+ bool res;
FOR_EACH_EDGE (e, ei, loop->header->preds)
if (e->flags & EDGE_EH)
return true;
edges = get_loop_exit_edges (loop);
+ res = false;
FOR_EACH_VEC_ELT (edge, edges, i, e)
if (e->flags & EDGE_COMPLEX)
- return true;
- return false;
+ {
+ res = true;
+ break;
+ }
+ VEC_free (edge, heap, edges);
+ return res;
}
#endif