PR tree-optimization/18529
commit9a73db25af4324ec736aba56a4f23a057c0bec21
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Nov 2004 21:33:47 +0000 (22 21:33 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Nov 2004 21:33:47 +0000 (22 21:33 +0000)
treed8660e4627f3ddc5b8cbe84ddc41e85ff94cac90
parent2800f0cbc2e531ce45b9932e3c9cb580ba6c4a2b
PR tree-optimization/18529
* fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
(simple_operand_p): Use STRIP_NOPS.  Consider SSA names simple.
(fold): Call fold_to_nonsharp_ineq_using_bound.
* tree-ssa-loop-niter.c (simplify_replace_tree): New function.
(number_of_iterations_cond): Fold the expressions before futher
processing.
(tree_simplify_using_condition): Handle case when cond or expr is
an EQ_EXPR specially.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91031 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/tree-ssa-loop-niter.c