[llvm] [compiler-rt] [Profile] Allow profile merging with multiple correlate files. (PR #75957)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 09:54:46 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 810b5bc59f5ec1194ada42c0042ae55046f5b18f 3481cf6ddd3b7a9759c2a7b37cf288cc36e25847 -- compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c llvm/include/llvm/ProfileData/InstrProfCorrelator.h llvm/include/llvm/ProfileData/InstrProfReader.h llvm/lib/Object/BuildID.cpp llvm/lib/ProfileData/InstrProfCorrelator.cpp llvm/lib/ProfileData/InstrProfReader.cpp llvm/tools/llvm-profdata/llvm-profdata.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index c135710961..f9ba7497db 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -177,9 +177,11 @@ InstrProfReader::create(std::unique_ptr<MemoryBuffer> Buffer,
if (IndexedInstrProfReader::hasFormat(*Buffer))
Result.reset(new IndexedInstrProfReader(std::move(Buffer)));
else if (RawInstrProfReader64::hasFormat(*Buffer))
- Result.reset(new RawInstrProfReader64(std::move(Buffer), Correlators, Warn));
+ Result.reset(
+ new RawInstrProfReader64(std::move(Buffer), Correlators, Warn));
else if (RawInstrProfReader32::hasFormat(*Buffer))
- Result.reset(new RawInstrProfReader32(std::move(Buffer), Correlators, Warn));
+ Result.reset(
+ new RawInstrProfReader32(std::move(Buffer), Correlators, Warn));
else if (TextInstrProfReader::hasFormat(*Buffer))
Result.reset(new TextInstrProfReader(std::move(Buffer)));
else
``````````
</details>
https://github.com/llvm/llvm-project/pull/75957
More information about the llvm-commits
mailing list