[llvm] [SampleFDO][NFC] Refactoring sample reader to support on-demand read profiles for given functions (PR #104654)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 17 07:39:45 PDT 2024


================
@@ -791,6 +798,19 @@ bool SampleProfileReaderExtBinaryBase::useFuncOffsetList() const {
   return false;
 }
 
+std::error_code
+SampleProfileReaderExtBinaryBase::read(const DenseSet<StringRef> &FuncsToUse,
----------------
WenleiHe wrote:

Now we need to check whether a profile is already loaded, before attempt to load. 

https://github.com/llvm/llvm-project/pull/104654


More information about the llvm-commits mailing list