[PATCH] D101067: [X86][AMX] Try to hoist AMX shapes' def

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 22 07:21:08 PDT 2021


pengfei created this revision.
pengfei added reviewers: LuoYuanke, xiangzhangllvm, yubing, wxiao3.
Herald added a subscriber: hiraditya.
pengfei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

We request no intersections between AMX instructions and their shapes'
def when we insert ldtilecfg. However, this is not always ture resulting
from not only users don't follow AMX API model, but also optimizations.

This patch adds a mechanism that tries to hoist AMX shapes' def as well.
It only hoists shapes inside a BB, we can improve it for cases across
BBs in future. Currently, it only hoists shapes of which all sources' def
above the first AMX instruction. We can improve for the case that only
source that moves an immediate value to a register below AMX instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101067

Files:
  llvm/lib/Target/X86/X86PreTileConfig.cpp
  llvm/test/CodeGen/X86/AMX/amx-sched.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101067.339620.patch
Type: text/x-patch
Size: 6873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210422/7f7da0e2/attachment.bin>


More information about the llvm-commits mailing list