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

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Sep 3 18:32:19 PDT 2025


  Branch: refs/heads/users/arsenm/amdgpu/issue154260/fold-av-spills-mfma-rewrite
  Home:   https://github.com/llvm/llvm-project
  Commit: 46c975af7136a68eaa1441cd9456845b9b9a030d
      https://github.com/llvm/llvm-project/commit/46c975af7136a68eaa1441cd9456845b9b9a030d
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-09-04 (Thu, 04 Sep 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