[PATCH] D40282: [X86] Don't report gather is legal on Skylake CPUs when AVX2/AVX512 is disabled. Allow gather on SKX/CNL/ICL when AVX512 is disabled by using AVX2 instructions.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 21:24:27 PST 2017


craig.topper created this revision.

This adds a new fast gather feature bit to cover all CPUs that support fast gather that we can use independent of whether the AVX512 feature is enabled. I'm only using this new bit to qualify AVX2 codegen. AVX512 is still implicitly assuming fast gather to keep tests working and to match the scatter behavior.


https://reviews.llvm.org/D40282

Files:
  lib/Target/X86/X86.td
  lib/Target/X86/X86Subtarget.cpp
  lib/Target/X86/X86Subtarget.h
  lib/Target/X86/X86TargetTransformInfo.cpp
  test/CodeGen/X86/avx2-masked-gather.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40282.123714.patch
Type: text/x-patch
Size: 29778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171121/86da02c5/attachment.bin>


More information about the llvm-commits mailing list