re PR tree-optimization/34244 (VRP/SCEV miscompiles Firefox)
authorRichard Guenther <rguenther@suse.de>
Sat, 31 May 2008 13:01:10 +0000 (13:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 31 May 2008 13:01:10 +0000 (13:01 +0000)
commit39f8a3b00c99fff50a211449cd10e326eabca8f4
tree4a655a0ae6f945ac1614484f03ea84124a685c78
parent2643f14e4453151004d8026128dd929dc4d7eb8e
re PR tree-optimization/34244 (VRP/SCEV miscompiles Firefox)

2008-05-31  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34244
* fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
(tree_expr_nonzero_warnv_p): Likewise.
* tree-vrp.c (vrp_expr_computes_nonnegative): Call
ssa_name_nonnegative_p.
(vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
(extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
not tree_expr_nonzero_warnv_p.

PR tree-optimization/36262
Revert
2007-11-29  Zdenek Dvorak  <ook@ucw.cz>

        PR tree-optimization/34244
        * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
        (record_numbers_of_iterations): New function.
        (execute_vrp): Cache the numbers of iterations of loops.
        * tree-scalar-evolution.c (scev_reset_except_niters):
        New function.
        (scev_reset): Use scev_reset_except_niters.
        * tree-scalar-evolution.h (scev_reset_except_niters): Declare.

From-SVN: r136237
gcc/ChangeLog
gcc/fold-const.c
gcc/tree-scalar-evolution.c
gcc/tree-scalar-evolution.h
gcc/tree-vrp.c