[clang] [llvm] [X86] Remove AMX-TRANSPOSE (PR #165556)
Evgenii Kudriashov via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 30 05:57:19 PDT 2025
================
@@ -268,18 +268,14 @@ void X86FastPreTileConfig::reload(MachineBasicBlock::iterator UseMI,
}
static unsigned getTileDefNum(MachineRegisterInfo *MRI, Register Reg) {
- if (Reg.isVirtual()) {
- unsigned RegClassID = MRI->getRegClass(Reg)->getID();
- if (RegClassID == X86::TILERegClassID)
- return 1;
- if (RegClassID == X86::TILEPAIRRegClassID)
- return 2;
- } else {
- if (Reg >= X86::TMM0 && Reg <= X86::TMM7)
- return 1;
- if (Reg >= X86::TMM0_TMM1 && Reg <= X86::TMM6_TMM7)
- return 2;
+ if (Reg.isVirtual() &&
+ (MRI->getRegClass(Reg)->getID() == X86::TILERegClassID)) {
+ return 1;
}
+
+ if (Reg >= X86::TMM0 && Reg <= X86::TMM7)
+ return 1;
+
return 0;
}
----------------
e-kud wrote:
Can we inline this function into `isTileRegister`? Maybe it makes sense to extract this function to a common place to use it in `llvm/lib/Target/X86/X86FastTileConfig.cpp` and `llvm/lib/Target/X86/X86FastPreTileConfig.cpp`
https://github.com/llvm/llvm-project/pull/165556
More information about the cfe-commits
mailing list