Passes down the necessary code ge options to the LTO Config to enable
-fdiagnostics-show-hotness and -fsave-optimization-record in the ThinLTO
backend for a distributed build.
Also, remove warning about not having PGO when the input is IR.
Paths
| Differential D46464
[ThinLTO] Support opt remarks options with distributed ThinLTO backends ClosedPublic Authored by tejohnson on May 4 2018, 1:50 PM.
Details Summary Passes down the necessary code ge options to the LTO Config to enable Also, remove warning about not having PGO when the input is IR.
Diff Detail
Event TimelineHerald added subscribers: eraman, inglorion, mehdi_amini. · View Herald TranscriptMay 4 2018, 1:50 PM
Comment Actions Fixed the output file as suggested. Also note that this test will fail and can't go in until after D46387 This revision is now accepted and ready to land.May 4 2018, 4:41 PM Comment Actions Update test for change to pass -1 as the Task ID for distributed backends,
Closed by commit rL331592: [ThinLTO] Support opt remarks options with distributed ThinLTO backends (authored by tejohnson). · Explain WhyMay 5 2018, 7:43 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 145348 lib/CodeGen/BackendUtil.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
test/CodeGen/thinlto_backend.ll
|
This file isn't named correctly according to the -foptimization-record-file flag, right? Looks like the easy fix would be to pass -1 as the task identifier to thinBackend, but it would probably be worth looking more closely at some point at how we name these extra files in LTO.