OSDN Git Service

[X86] Simplify the type legality checking for (FM)ADDSUB/SUBADD matching. NFCI
authorCraig Topper <craig.topper@intel.com>
Thu, 15 Mar 2018 17:38:59 +0000 (17:38 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 15 Mar 2018 17:38:59 +0000 (17:38 +0000)
commite9d01827a3bca9ec479461d08dfd9bc8fc10ff05
treea81958378a7999831ccc361af374bf9e48df2500
parentd8d0bbd266ff9f23360189cee44a8f978575fb49
[X86] Simplify the type legality checking for (FM)ADDSUB/SUBADD matching. NFCI

Rather than enumerating all specific types, for the DAG combine we can just use TLI::isTypeLegal and an SSE3 check. For the BUILD_VECTOR version we already know the type is legal so we just need to check SSE3.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327649 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp