[all-commits] [llvm/llvm-project] 4cbaaf: [X86][AMX] Hoist ldtilecfg

Pengfei Wang via All-commits all-commits at lists.llvm.org
Mon Apr 12 07:37:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cbaaf4a24376fe24656fc1fac846fd82de5158f
      https://github.com/llvm/llvm-project/commit/4cbaaf4a24376fe24656fc1fac846fd82de5158f
  Author: Wang, Pengfei <pengfei.wang at intel.com>
  Date:   2021-04-12 (Mon, 12 Apr 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86PreTileConfig.cpp
    M llvm/test/CodeGen/X86/AMX/amx-across-func.ll
    M llvm/test/CodeGen/X86/AMX/amx-config.ll
    M llvm/test/CodeGen/X86/AMX/amx-ldtilecfg-insert.ll
    M llvm/test/CodeGen/X86/opt-pipeline.ll

  Log Message:
  -----------
  [X86][AMX] Hoist ldtilecfg

The previous code calculated the first ldtilecfg by dominating all AMX registers' def. This may result in the ldtilecfg being inserted into a loop.

This patch try to calculate the nearest point where all shapes of AMX registers are reachable.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D99010




More information about the All-commits mailing list