[PATCH] D118951: [Spill2Reg] Using AVX opcodes when available.

Vasileios Porpodas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 15:14:08 PST 2022


vporpo created this revision.
Herald added subscribers: pengfei, hiraditya, qcolombet.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch updates the vector spill/reload instructions to use the AVX
opcodes by default if the targets supports it. This can be turned off
with the -spill2reg-no-avx flag.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118951

Files:
  llvm/include/llvm/CodeGen/TargetInstrInfo.h
  llvm/lib/CodeGen/Spill2Reg.cpp
  llvm/lib/Target/X86/X86InstrInfo.cpp
  llvm/lib/Target/X86/X86InstrInfo.h
  llvm/test/CodeGen/X86/spill2reg_end_to_end_16bit.ll
  llvm/test/CodeGen/X86/spill2reg_end_to_end_32bit.ll
  llvm/test/CodeGen/X86/spill2reg_end_to_end_64bit.ll
  llvm/test/CodeGen/X86/spill2reg_end_to_end_8bit.ll
  llvm/test/CodeGen/X86/spill2reg_simple_1_16bit.mir
  llvm/test/CodeGen/X86/spill2reg_simple_1_32bit.mir
  llvm/test/CodeGen/X86/spill2reg_simple_1_64bit.mir
  llvm/test/CodeGen/X86/spill2reg_simple_1_8bit.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118951.405816.patch
Type: text/x-patch
Size: 30067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220203/4ac96fd5/attachment.bin>


More information about the llvm-commits mailing list