[all-commits] [llvm/llvm-project] 1b998a: Add salvageDebugInfo support for truncating/extend...

adrian-prantl via All-commits all-commits at lists.llvm.org
Tue Sep 28 10:25:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b998a5f0cd9a4f278dd2d114845379a0fafa0a5
      https://github.com/llvm/llvm-project/commit/1b998a5f0cd9a4f278dd2d114845379a0fafa0a5
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    A llvm/test/Transforms/Util/salvage-debuginfo.ll

  Log Message:
  -----------
  Add salvageDebugInfo support for truncating/extending ptr/int conversions.

This patch enables debug info salvaging for truncating/extending ptr
int conversions. The testcase uncovered a bug in adce, which is
addressed separately.

rdar://80227769

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


  Commit: 9637b045e6eee71cd34f0f2f80a2ae1ad2a71129
      https://github.com/llvm/llvm-project/commit/9637b045e6eee71cd34f0f2f80a2ae1ad2a71129
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ADCE.cpp
    M llvm/test/Transforms/Util/salvage-debuginfo.ll

  Log Message:
  -----------
  Improve the effectiveness of ADCE's debug info salvaging

This patch improves the effectiveness of ADCE's debug info salvaging
by processing the instructions in reverse order and delaying
dropAllReferences until after debug info salvaging. This allows
salvaging of entire chains of deleted instructions!

Previously we would remove all references from an instruction, which
would make it impossible to use that instruction to salvage a later
instruction in the instruction stream, because its operands were
already removed.

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


  Commit: f6954bf80472cbfc06e39dac75a4a72120c9bd15
      https://github.com/llvm/llvm-project/commit/f6954bf80472cbfc06e39dac75a4a72120c9bd15
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/BDCE.cpp
    M llvm/test/Transforms/Util/salvage-debuginfo.ll

  Log Message:
  -----------
  Improve the effectiveness of BDCE's debug info salvaging

This patch improves the effectiveness of BDCE's debug info salvaging
by processing the instructions in reverse order and delaying
dropAllReferences until after debug info salvaging. This allows
salvaging of entire chains of deleted instructions!

Previously we would remove all references from an instruction, which
would make it impossible to use that instruction to salvage a later
instruction in the instruction stream, because its operands were
already removed.

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


Compare: https://github.com/llvm/llvm-project/compare/56e681afcce5...f6954bf80472


More information about the All-commits mailing list