[all-commits] [llvm/llvm-project] a8d7ad: [AMDGPU] Skip stack-arg dbg objects while fixing t...

Christudasan Devadasan via All-commits all-commits at lists.llvm.org
Fri Nov 4 03:13:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8d7ad70aac1148ce7c3458194c322c9536b1409
      https://github.com/llvm/llvm-project/commit/a8d7ad70aac1148ce7c3458194c322c9536b1409
  Author: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
    M llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
    A llvm/test/CodeGen/AMDGPU/sgpr-spill-fi-skip-processing-stack-arg-dbg-value.mir
    A llvm/test/CodeGen/AMDGPU/vgpr-spill-fi-skip-processing-stack-arg-dbg-value.mir

  Log Message:
  -----------
  [AMDGPU] Skip stack-arg dbg objects while fixing the dead frame indices

Both SGPR->VGPR and VGPR->AGPR spilling code give a fixup to the
spill frame indices referred in debug instructions so that they
can be entirely removed. We should skip the stack argument debug
objects while looking inside the bitvector with FI as the index
that tracks the spill indices being processed. The stack args will
have negative indices and would crash while accessing the bitvector.

Reviewed By: arsenm

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




More information about the All-commits mailing list