By: Doug S (foo.delete@this.bar.bar), May 20, 2022 10:07 am
Room: Moderated Discussions
dmcq (dmcq.delete@this.fano.co.uk) on May 20, 2022 5:43 am wrote:
> I certainly think it's a bit of a pity that SVE wasn't included in M1. It would have allowed a lot
> of code like strlen to be inline. Routines using the extra facilities of SVE2 though would be more
> like the matrix routines where using them out of line is expected one one might want to change them.
Would it even make sense to use SVE2 to inline strlen()? The average length of strings is fairly short, so firing up the SVE units and loading up the registers if your average string length is 10 would seem to be a massive waste.
That doesn't even get into what happens if your string isn't aligned with the SVE2 vector size.
> I certainly think it's a bit of a pity that SVE wasn't included in M1. It would have allowed a lot
> of code like strlen to be inline. Routines using the extra facilities of SVE2 though would be more
> like the matrix routines where using them out of line is expected one one might want to change them.
Would it even make sense to use SVE2 to inline strlen()? The average length of strings is fairly short, so firing up the SVE units and loading up the registers if your average string length is 10 would seem to be a massive waste.
That doesn't even get into what happens if your string isn't aligned with the SVE2 vector size.