[clang] [llvm] [X86] Remove AMX-TRANSPOSE (PR #165556)
Mikołaj Piróg via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 30 09:04:47 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;
}
----------------
mikolaj-pirog wrote:
It's also used in the `isTileDef`, so I think it's should stay as a function
https://github.com/llvm/llvm-project/pull/165556
More information about the cfe-commits
mailing list