From patchwork Wed Jun 22 14:12:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 101480 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 D7F45B6FC8 for ; Thu, 23 Jun 2011 00:13:49 +1000 (EST) Received: (qmail 20589 invoked by alias); 22 Jun 2011 14:13:45 -0000 Received: (qmail 20580 invoked by uid 22791); 22 Jun 2011 14:13:44 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Jun 2011 14:13:27 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 007605FC9F for ; Wed, 22 Jun 2011 16:13:25 +0200 (CEST) Date: Wed, 22 Jun 2011 16:12:25 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR49365 Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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 This fixes the prefetching regression caused by rev. 166552 by adjusting the default min-insn-to-prefetch-ratio. I benchmarked SPEC2006 with this change on AMD hardware (where prefetching is on by default) and apart from recovering the 436.cactusADM regression there is no other change in performance. Also bootstrapped and tested on x86_64-unknown-linux-gnu. I'll wait for comments before committing. Richard. 2011-06-22 Richard Guenther PR tree-optimization/49365 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9. Index: gcc/params.def =================================================================== --- gcc/params.def (revision 175293) +++ gcc/params.def (working copy) @@ -825,7 +825,7 @@ DEFPARAM (PARAM_MIN_INSN_TO_PREFETCH_RAT "min-insn-to-prefetch-ratio", "Min. ratio of insns to prefetches to enable prefetching for " "a loop with an unknown trip count", - 10, 0, 0) + 9, 0, 0) DEFPARAM (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO, "prefetch-min-insn-to-mem-ratio",