[all-commits] [llvm/llvm-project] b6eadb: [Coroutines] Look for dbg.declare for temp spills

Wei Wang via All-commits all-commits at lists.llvm.org
Thu Mar 30 10:13:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6eadb6c1b509921ccbc30861c0e70b5df8b3253
      https://github.com/llvm/llvm-project/commit/b6eadb6c1b509921ccbc30861c0e70b5df8b3253
  Author: Wei Wang <apollo.mobility at gmail.com>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    A llvm/test/Transforms/Coroutines/coro-debug-spill-dbg.declare.ll

  Log Message:
  -----------
  [Coroutines] Look for dbg.declare for temp spills

A temp spill may not have direct dbg.declare attached. This can cause problem for debugger when it wants to print the value in resume/destroy/cleanup functions.

In particular, we found this happening to "this" pointer that a temp is used to store its value in entry block and spilled later.

Reviewed By: ChuanqiXu

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




More information about the All-commits mailing list