llvm-project/llvm/test/Transforms/PGOProfile/Inputs/unreachable_bb.proftext
Rong Xu a5b5745a62 [PGO] Fix PGO use ICE when there are unreachable BBs
For -O0 there might be unreachable BBs, which breaks the assumption that all the
BBs have an auxiliary data structure.  In this patch, we add another interface
called findBBInfo() so that a nullptr can be returned for the unreachable BBs
(and the callers can ignore those BBs).

This fixes the bug reported
https://llvm.org/bugs/show_bug.cgi?id=31209

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

llvm-svn: 288528
2016-12-02 19:10:29 +00:00

10 lines
103 B
Plaintext

# IR level Instrumentation Flag
:ir
foo
# Func Hash:
12884901887
# Num Counters:
1
# Counter Values:
0