[llvm] [X86] Early exit MIR AMX passes when AMX is unused (PR #94989)
    Phoebe Wang via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jun 11 04:20:16 PDT 2024
    
    
  
================
@@ -237,11 +237,15 @@ void X86PreTileConfig::collectShapeInfo(MachineInstr &MI) {
 }
 
 bool X86PreTileConfig::runOnMachineFunction(MachineFunction &MF) {
+  X86MachineFunctionInfo *X86FI = MF.getInfo<X86MachineFunctionInfo>();
----------------
phoebewang wrote:
Just found we have `set/hasHasVirtualTileReg` interfaces. We can remove it and replace with `X86FI->getAMXProgModel() == AMXProgModelEnum::ManagedRA` too.
https://github.com/llvm/llvm-project/pull/94989
    
    
More information about the llvm-commits
mailing list