[PATCH] D115417: [LTO] Fix incomplete optimization remarks when PreOptModuleHook or PostInternalizeModuleHook is defined
Xu Mingjie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 9 02:02:51 PST 2021
Enna1 added a comment.
Thanks @tejohnson for looking into this !
I encounter this bug when I link a very large ELF file, and get an optimization remarks file(YAML format ) about 700MB and containing about 9000000 lines.
I try to write a small testcase to for this.
It seems that we create the optimization remarks file in `lto::setupLLVMOptimizationRemarks()` and get a `ToolOutputFile`, I did not find an option which controls the underlying buffer size used by `ToolOutputFile`.
Could you give me some hint or suggestions? Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115417/new/
https://reviews.llvm.org/D115417
More information about the llvm-commits
mailing list