[X86] Reland: Enable YMM memcmp with AVX1
authorDavid Zarzycki <dave@znu.io>
Thu, 31 Oct 2019 10:30:53 +0000 (12:30 +0200)
committerDavid Zarzycki <dave@znu.io>
Fri, 1 Nov 2019 06:58:48 +0000 (08:58 +0200)
commitcb6822c9deb63b6c21263b3732e549fdc89c4bbf
tree13d468e85bb18a1da9b900216f5cb1cab9366be1
parenta8a89c77ea3c16b45763fca6940bbfd3bef7884f
[X86] Reland: Enable YMM memcmp with AVX1

Update TargetTransformInfo to allow AVX1 to use YMM registers for memcmp.

This is a follow up to D68632 which enabled XOR compares which made this possible.

This also updates the memcmp-optsize.ll test unlike the first patch.

https://reviews.llvm.org/D69658
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/CodeGen/X86/memcmp-more-load-pairs.ll
llvm/test/CodeGen/X86/memcmp-optsize.ll
llvm/test/CodeGen/X86/memcmp.ll