[SampleFDO] Set ProfileIsFS bit properly from the internal option
authorRong Xu <xur@google.com>
Wed, 25 Aug 2021 16:07:34 +0000 (09:07 -0700)
committerRong Xu <xur@google.com>
Wed, 25 Aug 2021 16:07:34 +0000 (09:07 -0700)
commit24201b6437b2acad035fe474ec37f733e9045174
treeabb6946968b70d2932f90b362fc5eac1034ce737
parenta6f15e9a49a1a5bcd1ce7f30b1201d977d8a8ede
[SampleFDO] Set ProfileIsFS bit properly from the internal option

We have "-profile-isfs" internal option for text, binary, and
compactbinary format (mostly for debug and test purpose). We
need to set the related flag in FunctionSamples so that ProfileIsFS
is written to the header in extbinary format.

Differential Revision: https://reviews.llvm.org/D108707
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/test/tools/llvm-profdata/sample-fs.test