[PATCH] D48225: [llvm-mca][X86] Teach how to identify register writes that implicitly clear the upper portion of a super-register.

Andrea Di Biagio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 19 11:32:21 PDT 2018


andreadb updated this revision to Diff 151957.
andreadb added a comment.

Patch updated.

Treat XOP the same way as AVX. When the destination of a XOP instruction is an XMM register, we assume that the upper portion of all super-registers is cleared.


https://reviews.llvm.org/D48225

Files:
  include/llvm/MC/MCInstrAnalysis.h
  lib/MC/MCInstrAnalysis.cpp
  lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
  test/tools/llvm-mca/X86/BtVer2/clear-super-register-1.s
  test/tools/llvm-mca/X86/BtVer2/clear-super-register-2.s
  test/tools/llvm-mca/X86/Generic/avx512-super-registers-1.s
  test/tools/llvm-mca/X86/Generic/avx512-super-registers-2.s
  test/tools/llvm-mca/X86/Generic/avx512-super-registers-3.s
  test/tools/llvm-mca/X86/Generic/xop-super-registers-1.s
  test/tools/llvm-mca/X86/Generic/xop-super-registers-2.s
  tools/llvm-mca/InstrBuilder.cpp
  tools/llvm-mca/InstrBuilder.h
  tools/llvm-mca/Instruction.h
  tools/llvm-mca/RegisterFile.cpp
  tools/llvm-mca/llvm-mca.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48225.151957.patch
Type: text/x-patch
Size: 50185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180619/ceb7db15/attachment.bin>


More information about the llvm-commits mailing list