[all-commits] [llvm/llvm-project] 5adb38: AMDGPU: Try to unspill VGPRs after rewriting MFMAs...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Aug 21 06:44:16 PDT 2025


  Branch: refs/heads/users/arsenm/amdgpu/issue154260/fold-av-spills-mfma-rewrite
  Home:   https://github.com/llvm/llvm-project
  Commit: 5adb38cc0cffff45d976d54e5faddd10814b2b42
      https://github.com/llvm/llvm-project/commit/5adb38cc0cffff45d976d54e5faddd10814b2b42
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-08-21 (Thu, 21 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPURewriteAGPRCopyMFMA.cpp
    M llvm/test/CodeGen/AMDGPU/unspill-vgpr-after-rewrite-vgpr-mfma.ll

  Log Message:
  -----------
  AMDGPU: Try to unspill VGPRs after rewriting MFMAs to AGPR form

After replacing VGPR MFMAs with the AGPR form, we've alleviated VGPR
pressure which may have triggered spills during allocation. Identify
these spill slots, and try to reassign them to newly freed VGPRs,
and replace the spill instructions with copies.

Fixes #154260



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list