From patchwork Tue Dec 1 16:59:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 550978 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 1E08B140216 for ; Wed, 2 Dec 2015 03:59:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=higxKZU/; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=WzRkeLokqlZj5ToU5kO1+co4RBH9a/9L8muHEURnthkd/M7o+q AtCVtVImgzCO1HbeHgVxHKnZX2Kh3PI5fpyDEKk3IUfuoZ29oQq/m4753sI0VUX5 9XzAm+FPE0F1fOGUdh3RgA62kn628ydrVLqOVbMcsqztffW44R30C5Rlw= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=6UzZjoPcWC26PryfvFwpywUPenA=; b=higxKZU/VzWTnq6SxiO4 fQwayxi256+P5Wz+bMjR6dLP7jTQ5QmeKUZqk+EGrtupADbBLnfm4dKP8l77NcGP 6lc/eP36hfOJKkoa6il5V8ZYXOprp0/NIl59W8avKdUtF2sKNINZZxKnHk5+HYOq H/WSogAfAOjDZGUeVyJzJmg= Received: (qmail 103319 invoked by alias); 1 Dec 2015 16:59:14 -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 103290 invoked by uid 89); 1 Dec 2015 16:59:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qk0-f182.google.com Received: from mail-qk0-f182.google.com (HELO mail-qk0-f182.google.com) (209.85.220.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 01 Dec 2015 16:59:11 +0000 Received: by qkda6 with SMTP id a6so5020332qkd.3 for ; Tue, 01 Dec 2015 08:59:09 -0800 (PST) X-Received: by 10.55.16.165 with SMTP id 37mr85007607qkq.31.1448989149047; Tue, 01 Dec 2015 08:59:09 -0800 (PST) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id h19sm16210813qgd.37.2015.12.01.08.59.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Dec 2015 08:59:08 -0800 (PST) To: GCC Patches From: Nathan Sidwell Subject: [PTX] simplify arg advance Message-ID: <565DD1DB.1020908@acm.org> Date: Tue, 1 Dec 2015 11:59:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 arg_advance doesn't need to consider TImode. Those are always passed by reference. nathan 2015-12-01 Nathan Sidwell * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't consider mode. Index: config/nvptx/nvptx.c =================================================================== --- config/nvptx/nvptx.c (revision 231120) +++ config/nvptx/nvptx.c (working copy) @@ -975,15 +975,13 @@ nvptx_function_incoming_arg (cumulative_ /* Implement TARGET_FUNCTION_ARG_ADVANCE. */ static void -nvptx_function_arg_advance (cumulative_args_t cum_v, machine_mode mode, - const_tree type ATTRIBUTE_UNUSED, - bool named ATTRIBUTE_UNUSED) +nvptx_function_arg_advance (cumulative_args_t cum_v, + machine_mode ARG_UNUSED (mode), + const_tree ARG_UNUSED (type), + bool ARG_UNUSED (named)) { CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v); - if (mode == TImode) - cum->count += 2; - else - cum->count++; + cum->count++; } /* Handle the TARGET_STRICT_ARGUMENT_NAMING target hook.