[all-commits] [llvm/llvm-project] 290494: [coroutine] Salvage dbg.values in the original fun...

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Fri Apr 21 06:31:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 290494955c6c1deac9e876fa895cb14b9be37dd2
      https://github.com/llvm/llvm-project/commit/290494955c6c1deac9e876fa895cb14b9be37dd2
  Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
  Date:   2023-04-21 (Fri, 21 Apr 2023)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroInternal.h
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp
    M llvm/test/Transforms/Coroutines/coro-debug-dbg.values.ll

  Log Message:
  -----------
  [coroutine] Salvage dbg.values in the original function as well

D97673 implemented salvaging o dbg.value inside coroutine funclets, but
left the original function untouched. Before, only dbg.addr and dbg.decl
would get salvaged.

D121324 implemented salvaging of dbg.addr and dbg.decl in the original
function as well, but not of dbg.values.

This patch unifies salvaging in the original function and related
funclets, so that all intrinsics are salvaged in all functions. This is
particularly useful for ABIs where the original function is also
rewritten to receive the frame pointer as an argument.

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




More information about the All-commits mailing list