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

Reply via email to