[PATCH] D125075: [X86][AMX] Multiple configure for AMX register.

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 18:15:14 PDT 2022


xiangzhangllvm added inline comments.


================
Comment at: llvm/lib/Target/X86/X86FastPreTileConfig.cpp:550
+    if (HasTileOperand(MRI, MI))
+      HasUnconfigTile = true;
+    // According to AMX ABI, all the tile registers including config register
----------------
xiangzhangllvm wrote:
> LuoYuanke wrote:
> > xiangzhangllvm wrote:
> > > I am afraid , even without call, 1 ldtilecfg is not enough for 1 MBB.
> > > For example
> > > In 1 MBB, it contain 4 shapes, but the first 3 shape used up the "max reg num of ldtilecfg (8)" virtual tile regs in follow code. So It need another ldtilecfg.
> > That would run out of register. Currently we have valotiled tile in "lower amx type" pass. We can improve it later and disable volatile tile in that pass.
> If we consider greedy-->fast, we should consider this problem.
And do we need to consider shape number > "max reg num of ldtilecfg (8)" in current stage ? It is possible in big BB.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125075/new/

https://reviews.llvm.org/D125075



More information about the llvm-commits mailing list