From owner-cvs-all@FreeBSD.ORG Sun Oct 26 03:18:06 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D53816A4B3; Sun, 26 Oct 2003 03:18:06 -0800 (PST) Received: from mail.chesapeake.net (chesapeake.net [208.142.252.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDDC543FA3; Sun, 26 Oct 2003 03:18:04 -0800 (PST) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id h9QBI1q01829; Sun, 26 Oct 2003 06:18:01 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Sun, 26 Oct 2003 06:18:01 -0500 (EST) From: Jeff Roberson To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= In-Reply-To: Message-ID: <20031026061616.F43805-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Peter Wemm Subject: Re: cvs commit: src/sys/i386/i386 pmap.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2003 11:18:06 -0000 On Sun, 26 Oct 2003, Dag-Erling [iso-8859-1] Sm=F8rgrav wrote: > Peter Wemm writes: > > Massively deep pipelines help get the MHz up, and careful optimization = can > > stop it affecting frame rates. But it blows chunks if you mispredict a > > branch in typical gcc generated code. Or take our libc syscall stubs.. > > every single one will be mispredicted because the usual case (no errors= ) > > has an opposite direction branch to what intel's static branch predicti= on > > expects. > > Is there any way to teach (or trick) gcc to generate a branch which > the p4 will predict correctly? I doubt the effect would be measurable. We could simply rearrange the code. I do not know why it is arranged the way it is now but you would expect that there is some good reason. > > DES > -- > Dag-Erling Sm=F8rgrav - des@des.no >