llvm-project/llvm/lib
Robert Lougher e32564774c 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
2016-10-25 18:44:07 +00:00
..
Analysis Fix regression from my recent GlobalsAA fix. 2016-10-24 21:47:44 +00:00
AsmParser DebugInfo: preparation to implement DW_AT_alignment 2016-10-20 00:13:12 +00:00
Bitcode Fix spelling mistake in comment. 2016-10-20 10:42:14 +00:00
CodeGen Remove debug location from common tail when tail-merging 2016-10-25 18:44:07 +00:00
DebugInfo [pdb] added support for dumping globals stream 2016-10-21 19:43:19 +00:00
Demangle Avoid using alignas and constexpr. 2016-09-06 20:36:24 +00:00
ExecutionEngine Fix cross-endianness RuntimeDyld relocation for ARM 2016-10-20 22:15:56 +00:00
Fuzzer [libFuzzer] simplify the code for use_cmp, also use the position hint when available, add a test 2016-10-25 02:04:43 +00:00
IR Replace TimeValue by TimePoint in LegacyPassManager. NFC. 2016-10-25 16:20:07 +00:00
IRReader
LTO fix warning 2016-10-25 12:28:26 +00:00
LibDriver Object: Replace NewArchiveIterator with a simpler NewArchiveMember class. NFCI. 2016-06-29 22:27:42 +00:00
LineEditor
Linker Typo: nomed struct -> named struct 2016-10-19 20:10:03 +00:00
MC [MC] Fix Various End Of Line Comment checkings 2016-10-24 14:35:29 +00:00
Object nother additional error check for an invalid Mach-O file 2016-10-24 21:15:11 +00:00
ObjectYAML [macho2yaml] Don't write empty linkedit data 2016-08-17 21:46:04 +00:00
Option Generalize ArgList::AddAllArgs more 2016-09-29 19:47:58 +00:00
Passes Conditionally eliminate library calls where the result value is not used 2016-10-18 21:36:27 +00:00
ProfileData Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 15:02:18 +00:00
Support Removed FIXME from include ordering comment 2016-10-24 17:15:05 +00:00
TableGen Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes. 2016-08-23 17:14:32 +00:00
Target [WebAssembly] Add immediate fields to call_indirect and memory operators. 2016-10-25 16:55:52 +00:00
Transforms Fix 80-char violations. NFC. 2016-10-25 18:31:23 +00:00
CMakeLists.txt Try to fix a circular dependency in the modules build. 2016-09-06 20:16:19 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00