From patchwork Tue May 24 14:26:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Suchanek X-Patchwork-Id: 625683 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 3rDd604Zpcz9t4g for ; Wed, 25 May 2016 00:27:20 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=cywEwKkB; 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:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=OPk PtI62Q8b9IGORkqkxk0V4l0lHAABcqdyLKRLrLpfBQhW3lcUVPpydctPbfVvDYpN 4fqWK/q+1WtgFndN73M37XdsqNtaFCHEuXFUFq3tbA8mmxMXWOCGd1zNSqHNIPcy s0sEWzaXFqwq9hkPnElMehzMJabLI7mUorIgj69s= 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:content-type :content-transfer-encoding:mime-version; s=default; bh=L8JRne9gk x4y+0kZ4foKF7G/c8I=; b=cywEwKkBa8/swbfRbdOgXbrdn+CNzXkPMMiQp3z7v B+OZJcCpxYkooySd1FnjViVI3htA8LBkqhbUj/SMJnvluajPyNWn23QT0Yw1Xmnp VIr6rMvT/PA3EDKgN+miZiYBsDGdnz4JX0rU9kekGzR1Mnh3UIsv8J9oc2VuGbxq Pw= Received: (qmail 14603 invoked by alias); 24 May 2016 14:27:13 -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 14548 invoked by uid 89); 24 May 2016 14:27:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 24 May 2016 14:27:02 +0000 Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Websense Email with ESMTPS id BDF48A85F066E; Tue, 24 May 2016 15:26:56 +0100 (IST) Received: from hhmail02.hh.imgtec.org ([fe80::5400:d33e:81a4:f775]) by HHMAIL01.hh.imgtec.org ([fe80::710b:f219:72bc:e0b3%26]) with mapi id 14.03.0266.001; Tue, 24 May 2016 15:27:00 +0100 From: Robert Suchanek To: "Catherine_Moore@mentor.com" , Matthew Fortune CC: "gcc-patches@gcc.gnu.org" Subject: [PATCH][MIPS] Don't split shifts by default for MIPS16. Date: Tue, 24 May 2016 14:26:59 +0000 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi, The following changes the default behaviour of shift splitting for MIPS16 e.g. the shifts will be split only when used with undocumented -mno-debugd option that is now switched on by default. This appears to enable better optimization in certain cases, and hence, giving slightly better performance. Ok to apply? Regards, Robert gcc/ * config/mips/mips.md (3): Don't split shifts when used with -mdebugd. * config/mips/mips.opt (mdebugd): Init to 1 by default. --- gcc/config/mips/mips.md | 1 + gcc/config/mips/mips.opt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 22f4f0b..01d7edd 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -5602,6 +5602,7 @@ (define_expand "3" be careful not to allocate a new register if we've reached the reload pass. */ if (TARGET_MIPS16 + && !TARGET_DEBUG_D_MODE && optimize && CONST_INT_P (operands[2]) && INTVAL (operands[2]) > 8 diff --git a/gcc/config/mips/mips.opt b/gcc/config/mips/mips.opt index 53feb23..b6c839d 100644 --- a/gcc/config/mips/mips.opt +++ b/gcc/config/mips/mips.opt @@ -127,7 +127,7 @@ mdebug Target Var(TARGET_DEBUG_MODE) Undocumented mdebugd -Target Var(TARGET_DEBUG_D_MODE) Undocumented +Target Var(TARGET_DEBUG_D_MODE) Undocumented Init(1) meb Target Report RejectNegative Mask(BIG_ENDIAN)