public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: jiawei@iscas.ac.cn
To: "Jeff Law" <jeffreyalaw@gmail.com>
Cc: "juzhe.zhong@rivai.ai" <juzhe.zhong@rivai.ai>,
	 schwab <schwab@linux-m68k.org>,
	 gcc-patches <gcc-patches@gcc.gnu.org>,
	 "monk.chiang" <monk.chiang@sifive.com>,
	 "kito.cheng" <kito.cheng@gmail.com>
Subject: Re: Re: [PATCH] RISC-V: Add RVV registers register spilling
Date: Tue, 22 Nov 2022 09:42:31 +0800 (GMT+08:00)	[thread overview]
Message-ID: <1cb537b5.52f5.1849d00449e.Coremail.jiawei@iscas.ac.cn> (raw)
In-Reply-To: <1952901d-e16d-c626-d3a7-f95398c92e9e@gmail.com>




&gt; -----原始邮件-----
&gt; 发件人: "Jeff Law" <jeffreyalaw@gmail.com>
&gt; 发送时间: 2022-11-21 23:26:37 (星期一)
&gt; 收件人: "juzhe.zhong@rivai.ai" <juzhe.zhong@rivai.ai>, schwab <schwab@linux-m68k.org>
&gt; 抄送: gcc-patches <gcc-patches@gcc.gnu.org>, "monk.chiang" <monk.chiang@sifive.com>, "kito.cheng" <kito.cheng@gmail.com>, jiawei <jiawei@iscas.ac.cn>
&gt; 主题: Re: [PATCH] RISC-V: Add RVV registers register spilling
&gt; 
&gt; 
&gt; On 11/21/22 02:25, juzhe.zhong@rivai.ai wrote:
&gt; &gt; https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606523.html
&gt; &gt; This patch obviously didn't include scalable size frame.
&gt; &gt; So it ICE in offset = cfun-&gt;machine-&gt;frame.gp_sp_offset.to_constant ();
&gt; &gt; We can't directly use to_constant if the frame is a scalable.
&gt; &gt; Please fix it or revert it. Thanks
&gt; 
&gt; We probably just need to reject everything in 
&gt; riscv_get_setparate_components if the offset isn't constant. Something 
&gt; like the attached patch (untested) might be enough to resolve the problem.
&gt; 
&gt; 
&gt; Jeff
&gt; 

I tested this patch and it fix that problem and works well, 
thanks for you works!

Jiawei
</jiawei@iscas.ac.cn></kito.cheng@gmail.com></monk.chiang@sifive.com></gcc-patches@gcc.gnu.org></schwab@linux-m68k.org></juzhe.zhong@rivai.ai></jeffreyalaw@gmail.com>

      reply	other threads:[~2022-11-22  1:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-06  8:56 juzhe.zhong
2022-11-11  8:17 ` Kito Cheng
2022-11-20  9:24 ` Andreas Schwab
2022-11-21  8:38   ` juzhe.zhong
     [not found]   ` <20221121163829759542114@rivai.ai>
2022-11-21  9:25     ` juzhe.zhong
2022-11-21 15:26       ` Jeff Law
2022-11-22  1:42         ` jiawei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1cb537b5.52f5.1849d00449e.Coremail.jiawei@iscas.ac.cn \
    --to=jiawei@iscas.ac.cn \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jeffreyalaw@gmail.com \
    --cc=juzhe.zhong@rivai.ai \
    --cc=kito.cheng@gmail.com \
    --cc=monk.chiang@sifive.com \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).