From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id 575F23858D1E for ; Sun, 16 Apr 2023 16:45:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 575F23858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102d.google.com with SMTP id y11-20020a17090a600b00b0024693e96b58so22551773pji.1 for ; Sun, 16 Apr 2023 09:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681663539; x=1684255539; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=suJFY79lILSGrNDGQLZ+Lr4Xt2eygbhfdMK1WyqroT0=; b=CCKa7oi1xHkTdsbPLXLe1K3NIVC8D3OKNEmaBgMyW/MB+dvC+vOGbOmA1R0hZRT8Vs gQijhg1rf7wQEo6fubwyeXmN9FVpNx09e9UzZRhJb1NxcOSMtYZ2iGcBpuZEfVuT3loM BraEOE5RabRVvLidBuGoNXRYRIVkdnkX4Au8NzqUZvLMn89itx4y3GEcEoAfktnOTnhy ew57MfP70Ey9Eg6qa0LwXlhgO/YQwRXn9GgwFs7++SiGelt7/4C7wdEQChU9RfTjFqVD SU6CzREdYduD08aHyJfsFwxa5gjgp5ts7TaN68Fm/JQTG/QMUfVaWrYxOedH/kyAdms9 kLfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681663539; x=1684255539; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=suJFY79lILSGrNDGQLZ+Lr4Xt2eygbhfdMK1WyqroT0=; b=jGSmcPtstQGtqlugLjENGjZwha3bQrByOgriIw0+viwWxOAJtuk8TMAOFOkXxqqJIb jDyHg3ejhSNGacu0FTv7hcFICmc+7yBb+Lf25/Xw4UTf+CcqQI5oOakf+GHxTGs3nMNW pN7iEaPnLrvZMYuh1yYsjZ9D6A+5la/cDhaBo8/Qaf8fj0rC9xTOxwU/39loROU6tYqE bU2IJn44l14vVAM5Dm7T6Hv3a5vrbU12hl7PnsvUbCe0WJdnj35/pXZp0pV2suKFy4Oo 4ZhxI22FBa5jvA8SfjaIy+hhMz1kknZEw6kDOkVU9p+K8x+efecRuHWMuVhIJ+KqxI0x r08g== X-Gm-Message-State: AAQBX9eyYsPf4CiRRE0XECXzPTBvRMoKSFcAO5nrklxuMHCG1w+QMVgd va55knzWRkYuFeU5Rg8v7C0= X-Google-Smtp-Source: AKy350bgMg4nWYEoDu8C3rjVvLyg1VJwOdBLJALxZ0BAV5xL3fp/9xV0W9TJ+60uY0xk+mF3gWpYGQ== X-Received: by 2002:a17:902:db0e:b0:19e:29bd:8411 with SMTP id m14-20020a170902db0e00b0019e29bd8411mr11982233plx.30.1681663539035; Sun, 16 Apr 2023 09:45:39 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id x18-20020a170902821200b001a6cb827fafsm1128188pln.278.2023.04.16.09.45.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Apr 2023 09:45:38 -0700 (PDT) Message-ID: Date: Sun, 16 Apr 2023 10:45:37 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 2/3] RISC-V: optimize stack manipulation in save-restore Content-Language: en-US To: Fei Gao , gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com References: <20221201100332.22226-1-gaofei@eswincomputing.com> <20221201100332.22226-3-gaofei@eswincomputing.com> From: Jeff Law In-Reply-To: <20221201100332.22226-3-gaofei@eswincomputing.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 12/1/22 03:03, Fei Gao wrote: > The stack that save-restore reserves is not well accumulated in stack allocation and deallocation. > This patch allows less instructions to be used in stack allocation and deallocation if save-restore enabled. Haha! I should have read the whole series before commenting on the first patch. I think this addresses the precise issue I was asking about in my prior message. Jeff