diff options
author | Zaara Syeda <syzaara@ca.ibm.com> | 2017-05-31 17:12:38 +0000 |
---|---|---|
committer | Zaara Syeda <syzaara@ca.ibm.com> | 2017-05-31 17:12:38 +0000 |
commit | 3a7578c6589b910f9a04bae7f7f121dfe3281578 (patch) | |
tree | d9717d369740af26067db3f584bf73a07d6167bd /lldb/packages/Python/lldbsuite | |
parent | 6ad77845e29dd0b85a9d21dce8f06bf569999a5d (diff) | |
download | bcm5719-llvm-3a7578c6589b910f9a04bae7f7f121dfe3281578.tar.gz bcm5719-llvm-3a7578c6589b910f9a04bae7f7f121dfe3281578.zip |
[PPC] Inline expansion of memcmp
This patch does an inline expansion of memcmp.
It changes the memcmp library call into an inline expansion when the size is
known at compile time and is under a target specified threshold.
This expansion is implemented in CodeGenPrepare and expands into straight line
code. The target specifies a maximum load size and the expansion works by using
this size to load the two sources, compare, and exit early if a difference is
found. It also has a special case when the memcmp result is used in a compare
to zero equality.
Differential Revision: https://reviews.llvm.org/D28637
llvm-svn: 304313
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
0 files changed, 0 insertions, 0 deletions