[Utils] Salvage debug info of DCE'ed mul/sdiv/srem instructions
authorVedant Kumar <vsk@apple.com>
Tue, 13 Feb 2018 01:09:52 +0000 (01:09 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 13 Feb 2018 01:09:52 +0000 (01:09 +0000)
commit4011c26cc7cc3762a20d3927fc8cd80ad7b4d893
tree208c0512ccc332adb21472aa66f747d2c2a38699
parent31ec356a488a364c55782e82691afd1b8f449bc5
[Utils] Salvage debug info of DCE'ed mul/sdiv/srem instructions

Here are the number of additional debug values salvaged in a stage2
build of clang:

  63 SALVAGE: MUL
  1250 SALVAGE: SDIV

(No values were salvaged from `srem` instructions in this experiment,
but it's a simple case to handle so we might as well.)

llvm-svn: 324976
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/InstCombine/debuginfo-variables.ll