diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-14 12:57:27 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-14 12:57:27 +0000 |
commit | ad732fa6c9eb1a828b23ceb6b7d97a7eed293e45 (patch) | |
tree | 1c18ce1a21b86a0c0df9bba3c2f10bf533617381 /gcc/tree-chrec.h | |
parent | 88426909ee329a3351435ca6ba5bf526e2b56d24 (diff) | |
download | gcc-ad732fa6c9eb1a828b23ceb6b7d97a7eed293e45.tar.gz |
2012-12-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/55687
* tree-chrec.h (no_evolution_in_loop_p): Properly use
tree_contains_chrecs.
* gcc.dg/torture/pr55687.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194498 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-chrec.h')
-rw-r--r-- | gcc/tree-chrec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-chrec.h b/gcc/tree-chrec.h index 6d61d5fa8ea..db3f3bfe8cc 100644 --- a/gcc/tree-chrec.h +++ b/gcc/tree-chrec.h @@ -117,7 +117,7 @@ no_evolution_in_loop_p (tree chrec, unsigned loop_num, bool *res) STRIP_NOPS (chrec); scev = hide_evolution_in_other_loops_than_loop (chrec, loop_num); - *res = !tree_is_chrec (scev); + *res = !tree_contains_chrecs (scev, NULL); return true; } |