[PATCH] D98247: [X86][AMX] Prevent transforming load pointer from <256 x i32>* to x86_amx*.

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 11 17:04:41 PST 2021


LuoYuanke added a comment.

> I don't know anything about the AMX type / functionality, so I'm probably not the best judge.
> I agree that we want to avoid type-based hacks (but what does it mean that we even have target-specific types in IR?)...
> OTOH there is already precedent for AMX exceptions in instcombine (and MMX before that). I think we managed to make some of the MMX hacks less obviously bad by excluding all target-specific types from a given transform. Is that a possibility here? That is, could we limit the transform using isIntOrIntVectorTy() or similar?

Excluding all target-specific types from a given transform looks good to me. If we agree on this, I may refactor some of the code to exclude both MMX and AMX with a common type interface.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98247



More information about the llvm-commits mailing list