OSDN Git Service

[DWARF] Null out the debug locs of (loop invariant) instructions hoisted by LICM in
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Fri, 6 Jan 2017 18:38:57 +0000 (18:38 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Fri, 6 Jan 2017 18:38:57 +0000 (18:38 +0000)
commit2d3796dc88900f1f555883051cb0ac7d735084f2
treef9a1c09cc3c04596b42bf9e04e769f0b24ee6f47
parentd130989ed7b7e6e11d9b00c7509cf779490fbce6
[DWARF] Null out the debug locs of (loop invariant) instructions hoisted by LICM in
order to avoid jumpy line tables. Calls are left alone because they may be inlined.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291258 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp
test/DebugInfo/Generic/licm-hoist-debug-loc.ll [new file with mode: 0644]