From a9995c228c997c1440d149c0701222db187204d0 Mon Sep 17 00:00:00 2001 From: rguenth Date: Fri, 9 Feb 2007 13:29:11 +0000 Subject: 2007-02-09 Zdenek Dvorak Richard Guenther PR middle-end/23361 * fold-const.c (fold_comparison): Handle obfuscated comparisons against INT_MIN/INT_MAX. * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump file if a loop is removed. * gcc.dg/fold-compare-3.c: New testcase. * gcc.dg/tree-ssa/loop-24.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121742 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-loop-ivcanon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/tree-ssa-loop-ivcanon.c') diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index acc8cf30ab5..80ac15590b3 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -480,6 +480,9 @@ remove_empty_loop (struct loop *loop) unsigned n_before, freq_in, freq_h; gcov_type exit_count = exit->count; + if (dump_file) + fprintf (dump_file, "Removing empty loop %d\n", loop->num); + non_exit = EDGE_SUCC (exit->src, 0); if (non_exit == exit) non_exit = EDGE_SUCC (exit->src, 1); -- cgit v1.2.1