This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix extract_range_from_cond (PR tree-optimization/19060)


On Fri, 14 Jan 2005, Roger Sayle wrote:
> This new conditional is probably better written as
>
> 	if (!tree_int_cst_lt (low, op1))
> 	  return 0;


The bootstrap failure was caused by a typo making the above change.
Corrected as obvious and committed to mainline by the patch below.


2004-01-15  Roger Sayle  <roger@eyesopen.com>

      * tree-ssa-dom.c (extract_range_from_cond): Correct condition.


Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dom.c,v
retrieving revision 2.82
diff -c -3 -p -r2.82 tree-ssa-dom.c
*** tree-ssa-dom.c      15 Jan 2005 09:46:05 -0000      2.82
--- tree-ssa-dom.c      15 Jan 2005 16:46:44 -0000
*************** extract_range_from_cond (tree cond, tree
*** 3227,3233 ****

      case LT_EXPR:
        low = TYPE_MIN_VALUE (type);
!       if (!tree_int_cst_equal (low, op1))
        return 0;
        high = int_const_binop (MINUS_EXPR, op1, integer_one_node, 1);
        inverted = 0;
--- 3227,3233 ----

      case LT_EXPR:
        low = TYPE_MIN_VALUE (type);
!       if (!tree_int_cst_lt (low, op1))
        return 0;
        high = int_const_binop (MINUS_EXPR, op1, integer_one_node, 1);
        inverted = 0;

Roger
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]