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]

MIPS: don't generate branch-likely on the sb1


Hey Chris,

If I'm remembering correctly, this is based on a really old patch or message
I got from you.  Branch likely is extremely penalized on the SB1 and we
shouldn't generate them.  Right?

(Patch is against 3.3, but should apply to HEAD too.)

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-06-09  Daniel Jacobowitz  <drow@mvista.com>

	* mips.h: Add !TARGET_SB1 to GENERATE_BRANCHLIKELY.

--- gcc/gcc/config/mips/mips.h.orig	2003-02-28 15:00:10.000000000 -0500
+++ gcc/gcc/config/mips/mips.h	2003-02-28 15:06:39.000000000 -0500
@@ -763,6 +763,7 @@ extern void		sbss_section PARAMS ((void)
 
 #define GENERATE_BRANCHLIKELY   (TARGET_BRANCHLIKELY                    \
 				 && !TARGET_SR71K                       \
+				 && !TARGET_SB1                         \
 				 && !TARGET_MIPS16)
 
 /* Generate three-operand multiply instructions for SImode.  */


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