OSDN Git Service

Propagate DBG_VALUE entries when there are unvisited predecessors
authorKeith Walker <kwalker@arm.com>
Tue, 27 Sep 2016 16:46:07 +0000 (16:46 +0000)
committerKeith Walker <kwalker@arm.com>
Tue, 27 Sep 2016 16:46:07 +0000 (16:46 +0000)
commit275a9fe4ff80de1950d77b5a8819a8967513e61c
tree43645ca0e318f83457ee41ede329e5f425ea285c
parent2713e77a55dfb2ab65a7511b2ed06b97363d3891
Propagate DBG_VALUE entries when there are unvisited predecessors

Variables are sometimes missing their debug location information in
blocks in which the variables should be available. This would occur
when one or more predecessor blocks had not yet been visited by the
routine which propagated the information from predecessor blocks.

This is addressed by only considering predecessor blocks which have
already been visited.

The solution to this problem was suggested by Daniel Berlin on the
LLVM developer mailing list.

Differential Revision: https://reviews.llvm.org/D24927

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveDebugValues.cpp
test/CodeGen/ARM/dbg-range-extension.mir [new file with mode: 0644]