summaryrefslogtreecommitdiff
path: root/gcc/tree-chrec.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-14 12:57:27 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-14 12:57:27 +0000
commitad732fa6c9eb1a828b23ceb6b7d97a7eed293e45 (patch)
tree1c18ce1a21b86a0c0df9bba3c2f10bf533617381 /gcc/tree-chrec.h
parent88426909ee329a3351435ca6ba5bf526e2b56d24 (diff)
downloadgcc-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.h2
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;
}