[all-commits] [llvm/llvm-project] 948cad: [RegAllocFast] Handle new debug values for spills

Josh Stone via All-commits all-commits at lists.llvm.org
Wed Jan 11 17:18:03 PST 2023


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 948cadd6d4247f7a5bd8fd6b1386062653d54c84
      https://github.com/llvm/llvm-project/commit/948cadd6d4247f7a5bd8fd6b1386062653d54c84
  Author: Josh Stone <jistone at redhat.com>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M llvm/lib/CodeGen/RegAllocFast.cpp
    A llvm/test/CodeGen/PowerPC/regalloc-fast-debug-spill.ll

  Log Message:
  -----------
  [RegAllocFast] Handle new debug values for spills

These new debug values get inserted after the place where the spill
happens, which means they won't be reached by the reverse traversal of
basic block instructions. This would crash or fail assertions if they
contained any virtual registers to be replaced. We can manually handle
the new debug values right away to resolve this.

Fixes https://github.com/llvm/llvm-project/issues/59172

Reviewed By: StephenTozer

Differential Revision: https://reviews.llvm.org/D139590

(cherry picked from commit 87f57f459e7acbb00a6ca4ee6dec6014c5a97e07)




More information about the All-commits mailing list