diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2014-12-31 14:05:00 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-12-31 14:35:59 -0500 |
commit | f59ad976ed979d22637c5187f6a92fbbd8c191e4 (patch) | |
tree | adf67bb23ce8a0a994d21d95ab4a541217bb9f05 /ChangeLog | |
parent | 4a3d39994e07105fb1bd20ed71d166f6ebb21974 (diff) | |
download | glibc-f59ad976ed979d22637c5187f6a92fbbd8c191e4.zip glibc-f59ad976ed979d22637c5187f6a92fbbd8c191e4.tar.gz glibc-f59ad976ed979d22637c5187f6a92fbbd8c191e4.tar.bz2 |
powerpc: POWER7 strcpy optimization for unaligned strings
This patch optimizes strcpy for ppc64/power7 for unaligned source or
destination address. The source or destination address is aligned
to doubleword and data is shifted based on the alignment and
added with the previous loaded data to be written as a doubleword.
For each load, cmpb instruction is used for faster null check.
The word aligned optimization is also removed, since the new unaligned
code path shows better results handling word-aligned strings.
More combination of unaligned inputs is also added in benchtest
to measure the improvement.The new optimization shows 2 to 80% of
performance improvement for longer string though it does not show
big difference on string size less than 16 due to additional checks.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2014-12-31 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> + Adhemerval Zanella <azanella@linux.vnet.ibm.com> + + * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned + path. + * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs. + 2014-12-31 Joseph Myers <joseph@codesourcery.com> * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to |