[Utils] Salvage debug info of DCE'ed shl/lhsr/ashr instructions
authorVedant Kumar <vsk@apple.com>
Tue, 13 Feb 2018 01:09:49 +0000 (01:09 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 13 Feb 2018 01:09:49 +0000 (01:09 +0000)
commit31ec356a488a364c55782e82691afd1b8f449bc5
treea32bae600764f8af2d9edbd8108e647395db7816
parent47b16c45d7acef402729e67d66aebafe5295af75
[Utils] Salvage debug info of DCE'ed shl/lhsr/ashr instructions

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

  1912 SALVAGE: ASHR
   405 SALVAGE: LSHR
   249 SALVAGE: SHL

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