[PATCH] D92449: [X86] Sink x86_amx load in AMX type lowering.

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 19:38:22 PST 2020


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

When transform x86_amx load to amx load intrinsics, compiler need
to know the shape the matrix. The shape can be deduced from the user
of the load. However the shape may be defined after the load
instruction, so we need to sink the load to avoid such issue. This patch
only support sink within a basic block.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92449

Files:
  llvm/lib/Target/X86/X86LowerAMXType.cpp
  llvm/test/CodeGen/X86/AMX/amx-type.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92449.308849.patch
Type: text/x-patch
Size: 18264 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201202/b849bdd1/attachment.bin>


More information about the llvm-commits mailing list