[PATCH] D107544: [X86] [AMX] Replace bitcast with specific AMX intrinsics with X86 specific cast.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 13 01:44:42 PDT 2021


fhahn added a comment.

Could you also document those intrinsics in the LangRef?



================
Comment at: llvm/lib/Target/X86/X86LowerAMXType.cpp:71
+  Value *Vec;
+  if (match(II,
+            m_Intrinsic<Intrinsic::x86_cast_vector_to_tile>(m_Value(Vec))) ||
----------------
can you just `return match() || match()`?

Also it looks like you are not using `Vec`, so you could use `m_Any()` or something like that instead.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107544



More information about the llvm-commits mailing list