This is the mail archive of the gcc@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]

[RFA] BRANCH_COST (was Re: optimizing % CONST_INT)



While looking into this optimization issue on Sparc, I noticed that
fold-const.c provides the default for BRANCH_COST even though it
includes expr.h  This is totally unnecessary.

Ok for mainline and 3.1 branch?

2002-04-18  David S. Miller  <davem@redhat.com>

	* fold-const.c (BRANCH_COST): Don't provide default here, expr.h
	does it.

--- fold-const.c.~1~	Fri Feb 22 03:50:47 2002
+++ fold-const.c	Thu Apr 18 15:19:41 2002
@@ -109,10 +109,6 @@
 static tree fold_binary_op_with_conditional_arg 
   PARAMS ((enum tree_code, tree, tree, tree, int));
 							 
-#ifndef BRANCH_COST
-#define BRANCH_COST 1
-#endif
-
 #if defined(HOST_EBCDIC)
 /* bit 8 is significant in EBCDIC */
 #define CHARMASK 0xff


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