]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-scalar-evolution.c
When niter may be zero, return a COND_EXPR with the may_be_zero condition.
authorSebastian Pop <sebastian.pop@amd.com>
Fri, 28 May 2010 18:42:15 +0000 (18:42 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Fri, 28 May 2010 18:42:15 +0000 (18:42 +0000)
commit0a74c7586cbf24b875c05507e6861070e74ffb69
treefd9dab29f46e485b9afc38a2e968d2b4f9bb77eb
parente7cb8957bf8709677b85ba17fa3f9231633aaede
When niter may be zero, return a COND_EXPR with the may_be_zero condition.

2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>

* tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
only place it was called from.
(number_of_latch_executions): Do not return chrec_dont_know when the
may_be_zero is a runtime condition: instead, return a COND_EXPR
including the may_be_zero condition.
* cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
of nb_iterations.
* tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
COND_EXPRs.

* gcc.dg/vect/vect-outer-fir-lb.c: Un-XFAIL-ed.

From-SVN: r159992
gcc/ChangeLog
gcc/cfgloop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-outer-fir-lb.c
gcc/tree-scalar-evolution.c
gcc/tree-ssa-loop-ivopts.c