diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-09 13:29:11 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-09 13:29:11 +0000 |
commit | a9995c228c997c1440d149c0701222db187204d0 (patch) | |
tree | a7c503e98956c6e5d624c17e6ed753cc613964aa /gcc/tree-ssa-loop-ivcanon.c | |
parent | bbd74a204aee79bc299885935e4f43f09a0e75e9 (diff) | |
download | gcc-a9995c228c997c1440d149c0701222db187204d0.tar.gz |
2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
Richard Guenther <rguenther@suse.de>
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
Diffstat (limited to 'gcc/tree-ssa-loop-ivcanon.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivcanon.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |