From patchwork Tue Dec 11 18:41:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 205291 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 0354E2C007D for ; Wed, 12 Dec 2012 05:41:24 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1355856085; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=n9iD76i4whf64Zs/QudX f4bkgcE=; b=pK/C+OT2WaWMmkkNx2dmzzNBbc7ShQDI1GU7GCpiIU5q9darTWX7 yot8o4uhYHS+yxvU31c4A5pZnFxbOpgiOB/J8i3cqUS01/3aTIxRndFl8Srv1jWh W5HQe5RrXotHIIPbJKr7qkyvWT1AS3meSsQZ4itRfVBI8cy9n7y5EQM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=bInEa3EaaltKsVQZHXCBq8Q9uCX+ElmQ5WBU7lgVMn9fgu1GDheKEZwVOuJjBq zxs2Lwn/Hj5Uw+yVNG+yDKu+fTy0SgtsP3NgYEvFempBP3XfCtBfBh8pveDYuwkY mdf4n+Ll61QEbTnmT5w7HxwRUX26vNLLC2hou/fU2Z+DQ=; Received: (qmail 648 invoked by alias); 11 Dec 2012 18:41:20 -0000 Received: (qmail 636 invoked by uid 22791); 11 Dec 2012 18:41:18 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Dec 2012 18:41:09 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBBIf9Ep007715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Dec 2012 13:41:09 -0500 Received: from zalov.redhat.com (vpn1-5-246.ams2.redhat.com [10.36.5.246]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qBBIf70L011960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Dec 2012 13:41:08 -0500 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.redhat.com (8.14.5/8.14.5) with ESMTP id qBBIf7sw031021; Tue, 11 Dec 2012 19:41:07 +0100 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id qBBIf674031020; Tue, 11 Dec 2012 19:41:06 +0100 Date: Tue, 11 Dec 2012 19:41:06 +0100 From: Jakub Jelinek To: Richard Biener Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Speed up gfortran.dg/vect/fast-math-pr38968.f90 testcase Message-ID: <20121211184106.GW2315@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi! Lately this testcase often timesout for me on a busy box, I don't see a point iterating 2000^3 times, with 400^3 it is much faster and I still could reproduce the problem before the corresponding fix and the vectorizer r145171 fix fixed it. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2012-12-11 Jakub Jelinek * gfortran.dg/vect/fast-math-pr38968.f90: Decrease n from 2000 to 400. Jakub --- gcc/testsuite/gfortran.dg/vect/fast-math-pr38968.f90.jj 2011-01-25 18:39:53.000000000 +0100 +++ gcc/testsuite/gfortran.dg/vect/fast-math-pr38968.f90 2012-12-11 16:19:45.222105217 +0100 @@ -7,7 +7,7 @@ program mymatmul implicit none integer, parameter :: kp = 4 - integer, parameter :: n = 2000 + integer, parameter :: n = 400 real(kp), dimension(n,n) :: rr, ri complex(kp), dimension(n,n) :: a,b,c real :: t1, t2