[all-commits] [llvm/llvm-project] a0bd61: [DebugInfo] Limit the number of values that may be...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Wed May 26 09:34:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0bd6105d80698c53ceaa64bbe6e3b7e7bbf99ee
      https://github.com/llvm/llvm-project/commit/a0bd6105d80698c53ceaa64bbe6e3b7e7bbf99ee
  Author: Stephen Tozer <Stephen.Tozer at Sony.com>
  Date:   2021-05-26 (Wed, 26 May 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    A llvm/test/DebugInfo/limit-arglist-size.ll

  Log Message:
  -----------
  [DebugInfo] Limit the number of values that may be referenced by a dbg.value

Following the addition of salvaging dbg.values using DIArgLists to
reference multiple values, a case has been found where excessively large
DIArgLists are produced as a result of this salvaging, resulting in
large enough performance costs to effectively freeze the compiler.

This patch introduces an upper bound of 16 to the number of values that
may be salvaged into a dbg.value, to limit the impact of these extreme
cases to performance.

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




More information about the All-commits mailing list