[Utils] Salvage debug info in recursive inst deletion
authorVedant Kumar <vsk@apple.com>
Fri, 2 Mar 2018 21:36:35 +0000 (21:36 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 2 Mar 2018 21:36:35 +0000 (21:36 +0000)
commit334fa5745653b23246a1e4309e30b274644601f2
treed8b15dd0da0b120481e7a58a82db2fcc1ff4b083
parent1425e04146b7f825f0a5808acd52c8ec6117ec04
[Utils] Salvage debug info in recursive inst deletion

In stage2 -O3 builds of llc, this results in a 0.3% increase in the
number of variables with locations, and a 0.2% increase in the number of
unique source variables overall.

The size of the .debug_loc section of the llc dsym increases by 0.5%.

llvm-svn: 326621
llvm/lib/Transforms/Utils/Local.cpp
llvm/unittests/Transforms/Utils/Local.cpp