aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorwlei <wlei@fb.com>2021-02-10 10:04:39 -0800
committerwlei <wlei@fb.com>2021-02-12 16:47:49 -0800
commitafd8bd601eaf268357e2cc0cf4c0382732fcf923 (patch)
tree8f083e240c18dc41147a107b89423023a131a520 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent964f8103c58db5917c66ef39f50acf2004c90144 (diff)
downloadllvm-afd8bd601eaf268357e2cc0cf4c0382732fcf923.zip
llvm-afd8bd601eaf268357e2cc0cf4c0382732fcf923.tar.gz
llvm-afd8bd601eaf268357e2cc0cf4c0382732fcf923.tar.bz2
[CSSPGO][llvm-profgen] Filter out the instructions without location info for symbolizer
It appears some instructions doesn't have the debug location info and the symbolizer will return an empty call stack for them which will cause some crash later in profile unwinding. Actually we do not record the sample info for them, so this change just filter out those instruction. As those instruction would appears at the begin and end of the instruction list, without them we need to add the boundary check for IP `advance` and `backward`. Also for pseudo probe based profile, we actually don't need the symbolized location info, so here just change to use an empty stack for it. This could save half of the binary loading time. Differential Revision: https://reviews.llvm.org/D96434
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions