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]

[patch] tree-vrp.c: Replace fold (build (...)) with fold_build2.


Hi,

Tested on x86_64-pc-linux-gnu.  Committed as obvious.

Kazu Hirata

2005-07-03  Kazu Hirata  <kazu@codesourcery.com>

	* tree-vrp.c (extract_range_from_assert): Replace
	fold (build (...)) with fold_build2.

Index: tree-vrp.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-vrp.c,v
retrieving revision 2.36
diff -u -d -p -r2.36 tree-vrp.c
--- tree-vrp.c	26 Jun 2005 03:49:07 -0000	2.36
+++ tree-vrp.c	2 Jul 2005 01:40:38 -0000
@@ -844,7 +844,7 @@ extract_range_from_assert (value_range_t
       if (cond_code == LT_EXPR)
 	{
 	  tree one = build_int_cst (type, 1);
-	  max = fold (build (MINUS_EXPR, type, max, one));
+	  max = fold_build2 (MINUS_EXPR, type, max, one);
 	}
 
       set_value_range (vr_p, VR_RANGE, min, max, vr_p->equiv);
@@ -867,7 +867,7 @@ extract_range_from_assert (value_range_t
       if (cond_code == GT_EXPR)
 	{
 	  tree one = build_int_cst (type, 1);
-	  min = fold (build (PLUS_EXPR, type, min, one));
+	  min = fold_build2 (PLUS_EXPR, type, min, one);
 	}
 
       set_value_range (vr_p, VR_RANGE, min, max, vr_p->equiv);


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