[DebugInfo] Refactor SalvageDebugInfo and SalvageDebugInfoForDbgValues
authorChris Jackson <chris.jackson@sony.com>
Thu, 11 Jun 2020 09:28:39 +0000 (10:28 +0100)
committerChris Jackson <chris.jackson@sony.com>
Thu, 11 Jun 2020 10:13:46 +0000 (11:13 +0100)
commit4707bc217780895207a9dc7467495a92eb0106a5
tree6425b2f392a7e69d253242f7988d38c551deb60f
parent818ab3d654e41f99e25b0f19b633f2233b619c77
[DebugInfo] Refactor SalvageDebugInfo and SalvageDebugInfoForDbgValues

- Simplify the salvaging interface and the algorithm in InstCombine

Reviewers: vsk, aprantl, Orlando, jmorse, TWeaver

Reviewed by: Orlando

Differential Revision: https://reviews.llvm.org/D79863
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/InstCombine/debuginfo_add.ll