diff options
author | Robert Lougher <rob.lougher@gmail.com> | 2016-10-25 18:44:07 +0000 |
---|---|---|
committer | Robert Lougher <rob.lougher@gmail.com> | 2016-10-25 18:44:07 +0000 |
commit | e32564774c09344e80ea8f17bdc652412543f77b (patch) | |
tree | b49727c3964bfd80289b4b6d258bdf1c25018b1a /llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp | |
parent | cffedc4a94cc21a124521e96280935ef7ca1aa85 (diff) | |
download | bcm5719-llvm-e32564774c09344e80ea8f17bdc652412543f77b.tar.gz bcm5719-llvm-e32564774c09344e80ea8f17bdc652412543f77b.zip |
Remove debug location from common tail when tail-merging
The branch folding pass tail merges blocks into a common-tail. However, the
tail retains the debug information from one of the original inputs to the
merge (chosen randomly). This is a problem for sampled-based PGO, as hits
on the common-tail will be attributed to whichever block was chosen,
irrespective of which path was actually taken to the common-tail.
This patch fixes the issue by nulling the debug location for the common-tail.
Differential Revision: https://reviews.llvm.org/D25742
llvm-svn: 285093
Diffstat (limited to 'llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions