[all-commits] [llvm/llvm-project] a41ce9: [FastISel][DebugInfo] Handle dbg.value targeting a...

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Mon Oct 2 07:10:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a41ce98064f6d67203337762b0e45e75e464ce88
      https://github.com/llvm/llvm-project/commit/a41ce98064f6d67203337762b0e45e75e464ce88
  Author: Felipe de Azevedo Piovezan <felipepiovezan at users.noreply.github.com>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
    A llvm/test/CodeGen/X86/fast-isel-dbg-value-alloca.ll
    M llvm/test/DebugInfo/COFF/lines-bb-start.ll

  Log Message:
  -----------
  [FastISel][DebugInfo] Handle dbg.value targeting allocas (#67187)

FastISel currently drops dbg.values targeting allocas. It may seem
surprising that a simple case would fail to be lowered, but dbg.values
targeting allocas are not common; we usually have dbg.declares doing
that, and those are handled by the common code between FastISel and
SelectionDAGISel.

This patch addresses the issue by querying the static alloca map from
FuncInfo. If we have a frame index for it, we create a DBG_VALUE
intrinsic from it.




More information about the All-commits mailing list