From patchwork Fri Apr 12 18:26:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 236171 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D8E6B2C00B5 for ; Sat, 13 Apr 2013 04:26:35 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=Q7izi22YfriwHwRX1D2M9YcjH6F/JuosEg8JEAT4EM6Rh2 hH3uifA279/WXdXM9w3tIj/wp1Iqhr7RAsO1ESe6KfbO35IZ6CPEJqyL3GG3J5Ir PYJLaSeYthhUeFIWA0UNWJEEPt3ZrqAW2i3d+/HlJWOorn1zIelpzPPEMc+2s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=MrPuh1yAUJHIdUhDueru61MklkQ=; b=gMpkenI7KcG8fk36acUW 5YK1x7hy3Io0ZiA2zl49ZVSa6R0iNz3DBitSZwHIdSg7Yn41bdbup7PeD8Bb0VbN HYrO9zTyqK0d74vnFVOoxs/Z8Df6ykdfiqrSwL2QwtCm25OAqPPayBI7VpUqqyBu ntpnZBzGaaZhR2Af3OanX28= Received: (qmail 3468 invoked by alias); 12 Apr 2013 18:26:28 -0000 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 Received: (qmail 3456 invoked by uid 89); 12 Apr 2013 18:26:28 -0000 X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_ZJ autolearn=ham version=3.3.1 Received: from mail-ob0-f169.google.com (HELO mail-ob0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 12 Apr 2013 18:26:26 +0000 Received: by mail-ob0-f169.google.com with SMTP id wp18so2661934obc.14 for ; Fri, 12 Apr 2013 11:26:25 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.7.97 with SMTP id i1mr4376987oea.89.1365791185316; Fri, 12 Apr 2013 11:26:25 -0700 (PDT) Received: by 10.182.49.68 with HTTP; Fri, 12 Apr 2013 11:26:25 -0700 (PDT) Date: Fri, 12 Apr 2013 20:26:25 +0200 Message-ID: Subject: [PATCH, i386]: Use ANY_QI_REGNO_P in ix86_hard_regno_mode_ok QImode checks. From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" X-Virus-Found: No Hello! 2013-04-12 Uros Bizjak * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in QImode checks. There is no functional change, but the function is now slightly more readable. Tested on x86_64-pc-linux-gnu {,-m32} and committed to mainline SVN. Uros. Index: i386.c =================================================================== --- i386.c (revision 197931) +++ i386.c (working copy) @@ -33972,7 +33972,7 @@ { /* Take care for QImode values - they can be in non-QI regs, but then they do cause partial register stalls. */ - if (TARGET_64BIT || QI_REGNO_P (regno)) + if (ANY_QI_REGNO_P (regno)) return true; if (!TARGET_PARTIAL_REG_STALL) return true;