Hi Bohan,
    Thanks your patch. I have no objections to the patch changes. Would it be 
possible to wait a weeks before merging ? I will try to find the regression 
cause tomorrow. If I am unable to find the root cause within a week, I think 
the patch can proceed to merge, since I believe it is beneficial to the broader 
RISC-V community.
   Thanks.

> From: "Bohan Lei"<[email protected]>
> Date:  Thu, Nov 5, 2026, 17:08
> Subject:  Re: [PATCH] RISC-V: Allow IRA to allocate FPR to integer modes
> To: "Jeff Law"<[email protected]>, 
> "gcc-patches"<[email protected]>
> Cc: "rdapp.gcc"<[email protected]>, "Zhijin Zeng"<[email protected]>
> Hi Jeff,
> 
> > Yea it generally looks good.  So the question is do we want to go 
> > forward now or wait.   Given the K3 is the more common system available 
> > to end users, I'd suggest trying to understand the regressions over 
> > there.  As you note, they may be scheduling problems and I wouldn't 
> > necessarily expect you to go fix scheduling issues with a competitor's 
> > chip ;-)  Just understanding is the ask, particularly since I don't have 
> > a high degree of confidence in how well we're modeling the K3/X110 
> > design's behavior.
> 
> I looked further into these regressions.  Here is what I found:
> 
> - nextafter: The regression was gone after I tried to align both branch
>   addresses with NOPs, which indicates that difference code placement was
>   the major cause.
> - cbrtf: There are two fmv.d.x instructions in the sequence.  Starting
>   from the patched binary, interestingly, replacing the first fmv with a
>   memory roundtrip resulted in execution time reduction, while replacing
>   the second resulted in its increase.  So still not clear.
> - cosh: The function itself was not changed by the patch.  The only changed
>   function in the call chain is the exp function, but the measurement of exp
>   itself was show performance improvement.  The mechanism is yet unclear.
> 
> The main experiments were done using -mtune=generic.  I also tried
> -mtune=spacemit-x100.  While the latter two cases turned from regression to
> improvement, they generally showed a regression compared to the
> -mtune=generic ones.  This can be a sign that the K3 model in GCC may need
> further fine tuning, but not directly related to the regression listed in
> the last mail.
> 
> I'm not sure if the SpacemiT folks would have any comments, given that
> they submitted this patch first.  Zhijin has been on the CC list.
> 
> Regards,
> Bohan
> 


This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. If you are not an intended recipient of 
this message, please delete it and any attachment from your system and notify 
the sender immediately by reply e-mail. Unintended recipients should not use, 
copy, disclose or take any action based on this message or any information 
contained in this message. Emails cannot be guaranteed to be secure or error 
free as they can be intercepted, amended, lost or destroyed, and you should 
take full responsibility for security checking. 
 
本邮件及其任何附件具有保密性质,并可能受其他保护或不允许被披露给第三方。如阁下误收到本邮件,敬请立即以回复电子邮件的方式通知发件人,并将本邮件及其任何附件从阁下系统中予以删除。如阁下并非本邮件写明之收件人,敬请切勿使用、复制、披露本邮件或其任何内容,亦请切勿依本邮件或其任何内容而采取任何行动。电子邮件无法保证是一种安全和不会出现任何差错的通信方式,可能会被拦截、修改、丢失或损坏,收件人需自行负责做好安全检查。

Reply via email to