OSDN Git Service

[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)
commit40131a7149e661460396300caa090768e019023c
tree1993bfbac8e9eaa0941a62f2cfaee172dfa4861c
parent3ca5091556a3059a9239d7e34aeccb195c3dade9
[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%.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326621 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
unittests/Transforms/Utils/Local.cpp