From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22419 invoked by alias); 23 Apr 2002 09:25:44 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22403 invoked from network); 23 Apr 2002 09:25:42 -0000 Received: from unknown (HELO atrey.karlin.mff.cuni.cz) (195.113.31.123) by sources.redhat.com with SMTP; 23 Apr 2002 09:25:42 -0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 4018) id 4E5F14FC6C; Tue, 23 Apr 2002 11:25:40 +0200 (CEST) Date: Tue, 23 Apr 2002 02:39:00 -0000 From: Jan Hubicka To: Michel LESPINASSE Cc: Richard Henderson , gcc list Subject: Re: GCC performance regression - its memset ! Message-ID: <20020423092540.GC27274@atrey.karlin.mff.cuni.cz> References: <20020421005718.GA16378@zoy.org> <20020422213222.GA21429@zoy.org> <20020422165953.A32536@redhat.com> <20020423001045.GA26276@zoy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020423001045.GA26276@zoy.org> User-Agent: Mutt/1.3.27i X-SW-Source: 2002-04/txt/msg01147.txt.bz2 > On Mon, Apr 22, 2002 at 04:59:53PM -0700, Richard Henderson wrote: > > See whether or not disabling glibc's inline expansion of > > memset affects 2.95 vs 3.x with -D__NO_STRING_INLINES. > > I can get gcc 2.95 to be as slow as 3.1 snapshot by using both > -fno-builtin and -D__NO_STRING_INLINES > > but, I cant get gcc 3.1 to do the inlining for me > > If I dont use -fno-builtin -D__NO_STRING_INLINES, and just compile with -O3, > gcc 2.95 generates this: > > movl $table+2,%edi > cld > movl $31,%ecx > rep > stosl > stosw > > while 3.1 snapshot generates this: > > movl $table+2, (%esp) > movl $0, 4(%esp) > movl $126, 8(%esp) > call memset I guess the inlining threshold is too low or the default memset implementation too lame. I was tunning it for Athlon, so the mileage may warry from CPU to CPU. I will investigate the misscompilation first and check this second. Honza > > Hope this helps, > > -- > Michel "Walken" LESPINASSE > Is this the best that god can do ? Then I'm not impressed.