]> granicus.if.org Git - llvm/commit
When instructions are hoisted out of loops by MachineLICM, remove their debug loc.
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Fri, 2 Dec 2016 00:37:57 +0000 (00:37 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Fri, 2 Dec 2016 00:37:57 +0000 (00:37 +0000)
commit40c40efab99f031fa6e6035f71cd76bf5474b84f
treec0cf1124edcf20e4dd1b9c0ae8be0e5cc85e6b9c
parentd937b699b80714652f6401815c9835a1136a2319
When instructions are hoisted out of loops by MachineLICM, remove their debug loc.
This prevents erratic stepping behavior as well as incorrect source attribution
for sample profiling.

Reviewers: dblakie

Subscribers: llvm-commit

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288442 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineLICM.cpp
test/CodeGen/ARM/debug-info-branch-folding.ll
test/DebugInfo/MIR/X86/mlicm-hoist.mir [new file with mode: 0644]