[clang] [Profile] Add binary profile correlation to offload profile metadata at runtime. (PR #69493)
David Li via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 19 10:20:05 PDT 2023
================
@@ -540,10 +540,10 @@ Error RawInstrProfReader<IntPtrT>::readHeader(
"\nPLEASE update this tool to version in the raw profile, or "
"regenerate raw profile with expected version.")
.str());
- if (useDebugInfoCorrelate() && !Correlator)
- return error(instrprof_error::missing_debug_info_for_correlation);
- if (!useDebugInfoCorrelate() && Correlator)
- return error(instrprof_error::unexpected_debug_info_for_correlation);
+ if (useCorrelate() && !Correlator)
----------------
david-xl wrote:
candidate refactoring change.
https://github.com/llvm/llvm-project/pull/69493
More information about the cfe-commits
mailing list