Commit 0c924d5c by Andrew Pinski Committed by Andrew Pinski

tree-vrp.c (extract_range_from_expr): Move the check for non nullness after the…

tree-vrp.c (extract_range_from_expr): Move the check for non nullness after the check for gimple invariant.

2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-vrp.c (extract_range_from_expr): Move the check for non
        nullness after the check for gimple invariant.

From-SVN: r104002
parent 98cd8256
2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
* tree-vrp.c (extract_range_from_expr): Move the check for non
nullness after the check for gimple invariant.
2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree.c (host_integerp, tree_low_cst): Correct function comment. * tree.c (host_integerp, tree_low_cst): Correct function comment.
......
...@@ -1517,10 +1517,10 @@ extract_range_from_expr (value_range_t *vr, tree expr) ...@@ -1517,10 +1517,10 @@ extract_range_from_expr (value_range_t *vr, tree expr)
extract_range_from_unary_expr (vr, expr); extract_range_from_unary_expr (vr, expr);
else if (TREE_CODE_CLASS (code) == tcc_comparison) else if (TREE_CODE_CLASS (code) == tcc_comparison)
extract_range_from_comparison (vr, expr); extract_range_from_comparison (vr, expr);
else if (vrp_expr_computes_nonzero (expr))
set_value_range_to_nonnull (vr, TREE_TYPE (expr));
else if (is_gimple_min_invariant (expr)) else if (is_gimple_min_invariant (expr))
set_value_range (vr, VR_RANGE, expr, expr, NULL); set_value_range (vr, VR_RANGE, expr, expr, NULL);
else if (vrp_expr_computes_nonzero (expr))
set_value_range_to_nonnull (vr, TREE_TYPE (expr));
else else
set_value_range_to_varying (vr); set_value_range_to_varying (vr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment