]> granicus.if.org Git - llvm/commit
[X86] Remove isel patterns for mask vpcmpgt/vpcmpeq. Switch vpcmp to these based...
authorCraig Topper <craig.topper@intel.com>
Fri, 4 Oct 2019 18:02:46 +0000 (18:02 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 4 Oct 2019 18:02:46 +0000 (18:02 +0000)
commit1690198db2bd0e32593340e4f0c0ea7cea63c761
treeabf4e16bf7819bd48d307a8244858b256bb0b34c
parentb16ec5f87007878f946c74111d494fc905ea9db4
[X86] Remove isel patterns for mask vpcmpgt/vpcmpeq. Switch vpcmp to these based on the immediate in MCInstLower

The immediate form of VPCMP can represent these completely. The
vpcmpgt/eq are just shorter encodings.

This patch removes the isel patterns and just swaps the opcodes
and removes the immediate in MCInstLower. This matches where we do
some other encodings tricks.

Removes over 10K bytes from the isel table.

Differential Revision: https://reviews.llvm.org/D68446

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373766 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrAVX512.td
lib/Target/X86/X86MCInstLower.cpp
test/CodeGen/X86/avx512-mask-op.ll