[openssl-dev] [openssl.org #4162] [PATCH] Removing vrsave load and store

Andy Polyakov via RT rt at openssl.org
Wed Dec 2 08:54:31 UTC 2015


Hi,

>> Access to VRSAVE have a high cost in performance.
>> Since ABI was update we don't need to save what
>> vector register we are using. Removing VRSAVE access
>> can improve a bit more our performance.
> 
> ... I'd suggest to implement this in ppc-xlate. I.e. recognize
> 'mtspr 256,rA' and conditionally replace it with some kind of nop, e.g.
> or rA,rA,rA. 'mfspr rD,256' can be replaced with li rD,-1. This way one
> can affect all modules at once without having to examine each one of
> them. I can make suggestion a little bit later...

Question is if the condition for $no_vrsave assignment is proper. Or
rather if it should be /aix|linux64/. As I couldn't see that big-endian
Linux I have access to uses ELF ABI V2, I've settled for /aix|linux64le/.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: ppc-xlate.diff
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20151202/70960244/attachment.bin>


More information about the openssl-dev mailing list