From: Roger Sayle Date: Sat, 15 Jan 2005 16:47:53 +0000 (+0000) Subject: * tree-ssa-dom.c (extract_range_from_cond): Correct condition. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19e1af6e02b563c05de791e3550ae70c0d04a147;p=platform%2Fupstream%2Fgcc.git * tree-ssa-dom.c (extract_range_from_cond): Correct condition. From-SVN: r93697 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 42c0e98..0865fe7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2004-01-15 Roger Sayle + * tree-ssa-dom.c (extract_range_from_cond): Correct condition. + +2004-01-15 Roger Sayle + * harg-reg-set.h (reg_class_names): Prototype global array. * regclass.c (reg_class_names): Declare here and initialize to REG_CLASS_NAMES. diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 36cac29..a969422 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -3227,7 +3227,7 @@ extract_range_from_cond (tree cond, tree *hi_p, tree *lo_p, int *inverted_p) case LT_EXPR: low = TYPE_MIN_VALUE (type); - if (!tree_int_cst_equal (low, op1)) + if (!tree_int_cst_lt (low, op1)) return 0; high = int_const_binop (MINUS_EXPR, op1, integer_one_node, 1); inverted = 0;