OSDN Git Service

* tree-ssa-dom.c (extract_range_from_cond): Correct condition.
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jan 2005 16:47:53 +0000 (16:47 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jan 2005 16:47:53 +0000 (16:47 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93697 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 42c0e98..0865fe7 100644 (file)
@@ -1,5 +1,9 @@
 2004-01-15  Roger Sayle  <roger@eyesopen.com>
 
+       * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
+
+2004-01-15  Roger Sayle  <roger@eyesopen.com>
+
        * harg-reg-set.h (reg_class_names): Prototype global array.
        * regclass.c (reg_class_names): Declare here and initialize to
        REG_CLASS_NAMES.
index 36cac29..a969422 100644 (file)
@@ -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;