summaryrefslogtreecommitdiff
path: root/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-03-18 20:04:34 +0000
committerHans Wennborg <hans@hanshq.net>2014-03-18 20:04:34 +0000
commit523f800e90f21861a5b6bb9f7c432c8799168bde (patch)
treeb2894a46095eb1dde65307e5e09f8318c6330c14 /lib/Object/COFFObjectFile.cpp
parent172c31844b3b8216313bcb7b7e20ad8ecbc71d5f (diff)
downloadllvm-523f800e90f21861a5b6bb9f7c432c8799168bde.tar.gz
llvm-523f800e90f21861a5b6bb9f7c432c8799168bde.tar.bz2
llvm-523f800e90f21861a5b6bb9f7c432c8799168bde.tar.xz
X86 memcpy lowering: use "rep movs" even when esi is used as base pointer
For functions where esi is used as base pointer, we would previously fall back from lowering memcpy with "rep movs" because that clobbers esi. With this patch, we just store esi in another physical register, and restore it afterwards. This adds a little bit of register preassure, but the more efficient memcpy should be worth it. Differential Revision: http://llvm-reviews.chandlerc.com/D2968 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions