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]

[tree-ssa] Thinko in value range support



Just a dumb thinko I found when examining why a particular test wasn't
being optimized away. 

	* tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Fix thinko
	in test for swapping ranges.

Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-dom.c,v
retrieving revision 1.1.2.51
diff -c -3 -p -r1.1.2.51 tree-ssa-dom.c
*** tree-ssa-dom.c	30 Sep 2003 17:20:42 -0000	1.1.2.51
--- tree-ssa-dom.c	30 Sep 2003 20:32:47 -0000
*************** simplify_cond_and_lookup_avail_expr (tre
*** 1288,1294 ****
  					 low, cond_low)))
  	      || (lowequal 
  		  && integer_onep (fold (build (GT_EXPR, boolean_type_node,
! 						high, cond_high)))))
  	    {
  	      tree temp;
  
--- 1288,1294 ----
  					 low, cond_low)))
  	      || (lowequal 
  		  && integer_onep (fold (build (GT_EXPR, boolean_type_node,
! 						cond_high, high)))))
  	    {
  	      tree temp;
  



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