re PR tree-optimization/31885 (Not removing empty loop, scev not finding the correct...
authorZdenek Dvorak <dvorakz@suse.cz>
Thu, 10 May 2007 21:33:11 +0000 (23:33 +0200)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Thu, 10 May 2007 21:33:11 +0000 (21:33 +0000)
commite71d7f88ba619aab4d53468d4f26e97a670842dd
tree5bd5f7053c0c0609d3643ee5d62d5626410a8069
parent5635c26e579161430860f8f85941949ccf586f1d
re PR tree-optimization/31885 (Not removing empty loop, scev not finding the correct result)

PR tree-optimization/31885
* tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
to be undetermined.
(automatically_generated_chrec_p): Return false for NULL.

* gcc.dg/tree-ssa/loop-29.c: New test.

From-SVN: r124602
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-29.c [new file with mode: 0644]
gcc/tree-chrec.c
gcc/tree-chrec.h