[BDCE] Salvage debug info from dying insts
authorVedant Kumar <vsk@apple.com>
Wed, 21 Feb 2018 01:55:33 +0000 (01:55 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 21 Feb 2018 01:55:33 +0000 (01:55 +0000)
commit56492f9177e57b383d54366f93d77595ee80fd78
treeefa63aa7f77e5adcd08f86f2f3982b8df48b188f
parent9fbf64139ed74e23dcb51a4d42b270563cd89858
[BDCE] Salvage debug info from dying insts

This results in 15 additional unique source variables in a stage2 build
of FileCheck (at '-Os -g'), with a negligible increase in the size of
the .debug_loc section.

llvm-svn: 325660
llvm/lib/Transforms/Scalar/BDCE.cpp
llvm/test/Transforms/BDCE/basic.ll