The gold LTO plugin uses a set of hooks to implements emit-llvm and capture intermediate file generated during LTO. The hooks are called by each lto backend thread with a taskID as argument to differentiate between threads and tasks. Currently, all threads are overwriting the same file which results into only the intermediate output of the last backend thread to be preserved. This diff encodes the taskID into the filename.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
thanks for fix, this looks good to me, but would be good to wait a bit in case others have comments.
Comment Actions
lgtm with a minor request below.
llvm/tools/gold/gold-plugin.cpp | ||
---|---|---|
919 | Document constant bool parameter. I.e. "/* TempOutFile */ false" |
Document constant bool parameter. I.e. "/* TempOutFile */ false"