[all-commits] [llvm/llvm-project] bbccdf: [DebugInfo] Replace debug uses in replaceUsesOutsi...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Mon Apr 19 03:07:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bbccdf6f81979c0707c6ce25bf7c70be82e2629a
      https://github.com/llvm/llvm-project/commit/bbccdf6f81979c0707c6ce25bf7c70be82e2629a
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2021-04-19 (Mon, 19 Apr 2021)

  Changed paths:
    M llvm/lib/IR/Value.cpp
    A llvm/test/DebugInfo/Generic/instcombine-replaced-select-with-operand.ll
    M llvm/unittests/IR/ValueTest.cpp

  Log Message:
  -----------
  [DebugInfo] Replace debug uses in replaceUsesOutsideBlock

Value::replaceUsesOutsideBlock doesn't replace debug uses which leads to an
unnecessary reduction in variable location coverage. Fix this, add a unittest for
it, and add a regression test demonstrating the change through instcombine's
replacedSelectWithOperand.

Reviewed By: djtodoro

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




More information about the All-commits mailing list