[PGO] fix prof symbol lookup bug
authorXinliang David Li <davidxl@google.com>
Wed, 10 Feb 2016 06:36:55 +0000 (06:36 +0000)
committerXinliang David Li <davidxl@google.com>
Wed, 10 Feb 2016 06:36:55 +0000 (06:36 +0000)
commit86b4b91e352fc01eb8425eb19d5d97656a4b9949
tree0153da14e483e3edf02d0d7298588630ff484c41
parentdfe2156f1b6e7a0374a52e9ed8838d452d14438c
[PGO] fix prof symbol lookup bug

Patch by Rong Xu

The problem is exposed by intra-module indirect call promotion where
prof symtab is created from module which does not contain all symbols
from the program. With partial symtab, the result needs to be checked
more strictly.

llvm-svn: 260361
llvm/include/llvm/ProfileData/InstrProf.h
llvm/unittests/ProfileData/InstrProfTest.cpp