Completes D127777 by adding llvm-side tests for emitting index and imports files from in-process ThinLTO
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
Thanks! Couple minor comments.
llvm/test/ThinLTO/X86/emit-inprocess-files.ll | ||
---|---|---|
7 | Also, this comment isn't quite right - the minimized bitcode is not just minus the debug metadata. It is without any of the IR other than the minimal symbol info needed for the summary. Better to just say "as well as minimized bitcode containing just the summary" | |
10 | Feel free to remove this if we are already testing the minimized bitcode option elsewhere. | |
llvm/tools/llvm-lto2/llvm-lto2.cpp | ||
85 | As suggested below, we should check this for the distributed indexes case too. Also, either change the wording to something like "Has no effect unless specified with ...", or do some error checking. | |
315 | For completeness, this should also use the new ThinLTOEmitImports. But then you will unfortunately need to update a number of existing tests (hopefully not too many as we don't tend to look at the contents or for the existence of the imports files though - a quick search suggests maybe only llvm/test/ThinLTO/X86/emit_imports.ll). |
Thanks for the review! Added support for -thinlto-emit-imports with -thinlto-distributed-indexes
Also, this comment isn't quite right - the minimized bitcode is not just minus the debug metadata. It is without any of the IR other than the minimal symbol info needed for the summary. Better to just say "as well as minimized bitcode containing just the summary"