From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27146 invoked by alias); 23 Apr 2002 00:10:54 -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 27128 invoked from network); 23 Apr 2002 00:10:52 -0000 Received: from unknown (HELO Angel.zoy.org) (12.236.86.18) by sources.redhat.com with SMTP; 23 Apr 2002 00:10:52 -0000 Received: by Angel.zoy.org (Postfix, from userid 1000) id ACBF4B89B; Mon, 22 Apr 2002 17:10:45 -0700 (PDT) Date: Mon, 22 Apr 2002 17:13:00 -0000 From: Michel LESPINASSE To: Richard Henderson , gcc list Subject: Re: GCC performance regression - its memset ! Message-ID: <20020423001045.GA26276@zoy.org> References: <20020421005718.GA16378@zoy.org> <20020422213222.GA21429@zoy.org> <20020422165953.A32536@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020422165953.A32536@redhat.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2002-04/txt/msg01124.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 Hope this helps, -- Michel "Walken" LESPINASSE Is this the best that god can do ? Then I'm not impressed.