[all-commits] [llvm/llvm-project] 12de29: Tighten heuristic for coroutine debug info workaro...

adrian-prantl via All-commits all-commits at lists.llvm.org
Wed Sep 1 11:16:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12de296d840caf3d83eb1475195a023868be0c61
      https://github.com/llvm/llvm-project/commit/12de296d840caf3d83eb1475195a023868be0c61
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-09-01 (Wed, 01 Sep 2021)

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

  Log Message:
  -----------
  Tighten heuristic for coroutine debug info workaround.

The OutermostLoad condition is supposed to strip the outermost
DW_OP_deref operation because dbg.declares are implicitly
indirect. This patch makes sure the heuristic is only applied to
dbg.declare intrinsics and only if the outermost instruction is a
load.

This was found while qualifying the latest Swift compiler rebranch.

rdar://82037764




More information about the All-commits mailing list