Prefer AVX512 memcpy when applicable
authorDavid Zarzycki <dave@znu.io>
Mon, 23 Sep 2019 05:00:59 +0000 (05:00 +0000)
committerDavid Zarzycki <dave@znu.io>
Mon, 23 Sep 2019 05:00:59 +0000 (05:00 +0000)
commita7a515cb7738d77282fc52fc41c97fd914515aae
tree16178cc76dc9d41ba4238bb03cd594461b4451be
parentd8ac51ab8fde3dbf7d55e5940584019330991dd7
Prefer AVX512 memcpy when applicable

When AVX512 is available and the preferred vector width is 512-bits or
more, we should prefer AVX512 for memcpy().

https://bugs.llvm.org/show_bug.cgi?id=43240

https://reviews.llvm.org/D67874

llvm-svn: 372540
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/memcpy.ll
llvm/test/CodeGen/X86/memset-nonzero.ll
llvm/test/CodeGen/X86/memset-zero.ll