As we decided to support only one binary each time, this patch cleans up the related code dealing with multiple binaries. We can use llvm-profdata to merge profile from multiple binaries.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the cleanup. The new code looks cleaner and I believe it'll also speed up the tool.
llvm/tools/llvm-profgen/PerfReader.h | ||
---|---|---|
535–536 | Do we still need this? Looks like this can be just a single field of PerfReaderBase. |
Comment Actions
remove unneeded code
llvm/tools/llvm-profgen/PerfReader.h | ||
---|---|---|
535–536 | Good catch! We shouldn't need this, removed. |
Comment Actions
lgtm except for a minor issue.
llvm/tools/llvm-profgen/PerfReader.cpp | ||
---|---|---|
350 | The comment could still be helpful? |
llvm/tools/llvm-profgen/PerfReader.cpp | ||
---|---|---|
296–297 | is the removal of const intentional? |
Do we still need this? Looks like this can be just a single field of PerfReaderBase.