[all-commits] [llvm/llvm-project] 16c1de: [AMDGPU] Verify dominance when rewriting spills to...

Austin Kerbow via All-commits all-commits at lists.llvm.org
Mon Nov 10 10:55:25 PST 2025


  Branch: refs/heads/users/kerbowa/rewrite-agpr-copy-crash
  Home:   https://github.com/llvm/llvm-project
  Commit: 16c1de0b058f6e28081e1f82f88e3998228d2ab5
      https://github.com/llvm/llvm-project/commit/16c1de0b058f6e28081e1f82f88e3998228d2ab5
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-11-10 (Mon, 10 Nov 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPURewriteAGPRCopyMFMA.cpp
    A llvm/test/CodeGen/AMDGPU/rewrite-agpr-spill-multi-store-crash.ll

  Log Message:
  -----------
  [AMDGPU] Verify dominance when rewriting spills to registers

When performing spill elimination in the AGPR copy rewrite pass it was
possible to see spill reloads that were not dominated by any store. This
caused invalid MIR to be generated where vreg uses were not dominated by
defs. This patch adds a dominance check before rewriting spills.



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