From patchwork Wed Oct 19 12:05:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Ostanevich X-Patchwork-Id: 120604 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 39200B71CA for ; Wed, 19 Oct 2011 23:06:17 +1100 (EST) Received: (qmail 14185 invoked by alias); 19 Oct 2011 12:06:14 -0000 Received: (qmail 14165 invoked by uid 22791); 19 Oct 2011 12:06:12 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Oct 2011 12:05:55 +0000 Received: by ywm39 with SMTP id 39so1786376ywm.20 for ; Wed, 19 Oct 2011 05:05:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.76.201 with SMTP id d9mr10799657fak.12.1319025954963; Wed, 19 Oct 2011 05:05:54 -0700 (PDT) Received: by 10.223.89.75 with HTTP; Wed, 19 Oct 2011 05:05:54 -0700 (PDT) Date: Wed, 19 Oct 2011 16:05:54 +0400 Message-ID: Subject: [PATCH PR50572] Tune loop alignment for Atom From: Sergey Ostanevich To: gcc-patches@gcc.gnu.org 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! Here is a patch to address PR50572. Successfully bootstrapped and passed make check on x86_64-linux. regards, Sergos 2011-10-19 Sergey Ostanevich * gcc/config/i386/i386.c (ix86_option_override_internal): use loop align by 16 bytes for Atom platform { diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 2c53423..7a93144 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3497,6 +3497,8 @@ ix86_option_override_internal (bool main_args_p) { align_loops = processor_target_table[ix86_tune].align_loop; align_loops_max_skip = processor_target_table[ix86_tune].align_loop_max_skip; + if (ix86_tune == PROCESSOR_ATOM && optimize > 1) + align_loops_max_skip = 15; } if (align_jumps == 0)