[PATCH] D92993: [X86] WIP Swizzle the execution domains for AVX2 targets to prefer integer over floating point

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 19:33:03 PST 2020


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel, pengfei, anton-afanasyev.
Herald added a subscriber: hiraditya.
craig.topper requested review of this revision.
Herald added a project: LLVM.

The execution domain fixing pass defaults to the lowest numbered domain. This patch swizzles the domain numbering at the X86 interface to the pass when AVX2 is enabled so that integer appears to be the lowest numbered domain. This allows us to use the same tables for both cases.

The test updates are incomplete and may no longer apply cleanly. This patch has been sitting on my computer for a while.


https://reviews.llvm.org/D92993

Files:
  llvm/lib/Target/X86/X86InstrInfo.cpp
  llvm/lib/Target/X86/X86InstrInfo.h
  llvm/test/CodeGen/X86/vector-half-conversions.ll
  llvm/test/CodeGen/X86/vector-idiv.ll
  llvm/test/CodeGen/X86/vector-lzcnt-128.ll
  llvm/test/CodeGen/X86/vector-lzcnt-256.ll
  llvm/test/CodeGen/X86/vector-popcnt-128.ll
  llvm/test/CodeGen/X86/vector-popcnt-256.ll
  llvm/test/CodeGen/X86/vector-shuffle-avx512.ll
  llvm/test/CodeGen/X86/vector-shuffle-combining-avx.ll
  llvm/test/CodeGen/X86/vector-shuffle-combining-avx2.ll
  llvm/test/CodeGen/X86/vector-shuffle-combining-avx512f.ll
  llvm/test/CodeGen/X86/vector-shuffle-combining-ssse3.ll
  llvm/test/CodeGen/X86/vector-shuffle-combining-xop.ll
  llvm/test/CodeGen/X86/vector-shuffle-combining.ll
  llvm/test/CodeGen/X86/vector-shuffle-sse4a.ll
  llvm/test/CodeGen/X86/vector-shuffle-variable-128.ll
  llvm/test/CodeGen/X86/vector-shuffle-variable-256.ll
  llvm/test/CodeGen/X86/vector-trunc-math.ll
  llvm/test/CodeGen/X86/vector-trunc.ll
  llvm/test/CodeGen/X86/vector-tzcnt-128.ll
  llvm/test/CodeGen/X86/vector-tzcnt-256.ll
  llvm/test/CodeGen/X86/vector-width-store-merge.ll
  llvm/test/CodeGen/X86/vector-zext.ll
  llvm/test/CodeGen/X86/vector-zmov.ll
  llvm/test/CodeGen/X86/vzero-excess.ll
  llvm/test/CodeGen/X86/x86-interleaved-access.ll
  llvm/test/CodeGen/X86/x86-interrupt_cc.ll
  llvm/test/CodeGen/X86/x86-upgrade-avx2-vbroadcast.ll
  llvm/test/CodeGen/X86/xop-intrinsics-x86_64-upgrade.ll
  llvm/test/CodeGen/X86/xop-mask-comments.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92993.310747.patch
Type: text/x-patch
Size: 321760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201210/713b68ff/attachment-0001.bin>


More information about the llvm-commits mailing list