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

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Thu Apr 15 08:21:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96a1e6b7cf72d9bd625903ea4b441404200383cf
      https://github.com/llvm/llvm-project/commit/96a1e6b7cf72d9bd625903ea4b441404200383cf
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2021-04-15 (Thu, 15 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