From patchwork Tue Apr 4 09:58:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 746723 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vy4LV1Qyfz9s8F for ; Tue, 4 Apr 2017 20:03:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="rdmbB6AH"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=TCoD272O5Ks/X7rz F168na5pcyNXiZmIcl3lwfkspE8oRCBvGhU8614Seo7Jxu9q4NG+8e7NXbKhkmPo GLB2tOxO1bnUOavR7g4sCH1l2Ku1qI3P5oRDD8KkXvvu/M/w/5oyLRcx2sSnscVu lOJowoHeVQ8/HrQugyC5qx1GCgQ= 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:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=default; bh=4vBXauMVY6G1qhv9NfgiSg 5NDMc=; b=rdmbB6AHX/Wye+gWLx1oz8oMF0MHdgkCVeS6+nKjGg48XIW9ZNs3UE 3d2+Apsa6jUacSrwfrmKb3gkqb1nVe2Aot+ugGRDRPR9+Z1rHyvp8SJ8/cR5MuHP ikSb2mg5dXWR+VbrsjIwFiAU17yPxvsXF7jiEIIgc93N7M3TL2Nls= Received: (qmail 15625 invoked by alias); 4 Apr 2017 10:01:43 -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 15489 invoked by uid 89); 4 Apr 2017 10:01:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:mailhos, Relax, H*RU:sk:mailhos, PLUS X-HELO: smtprelay.synopsys.com Received: from us01smtprelay-2.synopsys.com (HELO smtprelay.synopsys.com) (198.182.47.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Apr 2017 10:01:40 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 6828224E1263; Tue, 4 Apr 2017 03:01:40 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 0868A8DD; Tue, 4 Apr 2017 03:01:40 -0700 (PDT) Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id EC7D58DC; Tue, 4 Apr 2017 03:01:39 -0700 (PDT) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 4 Apr 2017 03:01:39 -0700 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.103) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 4 Apr 2017 15:31:38 +0530 Received: from nl20droid1.internal.synopsys.com (10.100.24.228) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 4 Apr 2017 15:31:37 +0530 From: Claudiu Zissulescu To: CC: , , Subject: [PATCH 1/3] [ARC] Update mode_dependent_address_p hook. Date: Tue, 4 Apr 2017 11:58:59 +0200 Message-ID: <1491299941-3908-2-git-send-email-claziss@synopsys.com> In-Reply-To: <1491299941-3908-1-git-send-email-claziss@synopsys.com> References: <1491299941-3908-1-git-send-email-claziss@synopsys.com> MIME-Version: 1.0 Update arc_mode_dependent_address_p to avoid emitting subreg(mem (reg ..)) when expanding. gcc/ 2016-10-11 Claudiu Zissulescu * config/arc/arc.c (arc_mode_dependent_address_p): Relax conditions to take advantage of various optimizations. --- gcc/config/arc/arc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 50bfa11..165f3d6 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -5641,13 +5641,9 @@ arc_mode_dependent_address_p (const_rtx addr, addr_space_t) { /* SYMBOL_REF is not mode dependent: it is either a small data reference, which is valid for loads and stores, or a limm offset, which is valid for - loads. */ - /* Scaled indices are scaled by the access mode; likewise for scaled - offsets, which are needed for maximum offset stores. */ + loads. Scaled indices are scaled by the access mode. */ if (GET_CODE (addr) == PLUS - && (GET_CODE (XEXP ((addr), 0)) == MULT - || (CONST_INT_P (XEXP ((addr), 1)) - && !SMALL_INT (INTVAL (XEXP ((addr), 1)))))) + && GET_CODE (XEXP ((addr), 0)) == MULT) return true; return false; }