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)
commit42f92a7225b538752895710bac0904dd1263d68c
tree27285d54eeee3c3a6e6710ffc86da62565163c04
parent35c5e58f8ce802e49dbadf52942779ec9078f0f2
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

llvm-svn: 288442
llvm/lib/CodeGen/MachineLICM.cpp
llvm/test/CodeGen/ARM/debug-info-branch-folding.ll
llvm/test/DebugInfo/MIR/X86/mlicm-hoist.mir [new file with mode: 0644]