[X86] 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>
Thu, 31 Oct 2019 18:07:07 +0000 (20:07 +0200)
commit0e252ae19ff8d99a59d64442c38eeafa5825d441
treedfff213a4c2d20810cdc8fcb0e642b0ec07112f5
parent1b57f0213f32cf54e132b4bc2361d8a41174d6b8
[X86] 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.

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.ll