llvm-project/llvm/lib/LTO
Yolanda Chen 8fa16cc628 [LTO][lld] Add lto-pgo-warn-mismatch option
When enable CSPGO for ThinLTO, there are profile cfg mismatch warnings that will cause lld-link errors (with /WX)
due to source changes (e.g. `#if` code runs for profile generation but not for profile use)
To disable it we have to use an internal "/mllvm:-no-pgo-warn-mismatch" option.
In contrast clang uses option ”-Wno-backend-plugin“ to avoid such warnings and gcc has an explicit "-Wno-coverage-mismatch" option.

Add "lto-pgo-warn-mismatch" option to lld COFF/ELF to help turn on/off the profile mismatch warnings explicitly when build with ThinLTO and CSPGO.

Differential Revision: https://reviews.llvm.org/D104431
2021-08-11 09:45:55 -07:00
..
CMakeLists.txt [LTO][lld] Add lto-pgo-warn-mismatch option 2021-08-11 09:45:55 -07:00
Caching.cpp [NFC] Reduce include files dependency and AA header cleanup (part 2). 2020-12-17 14:04:48 +03:00
LTO.cpp [ThinLTO] Add TimeTrace for Thinlink step 2021-08-03 13:20:04 -07:00
LTOBackend.cpp [LTO][lld] Add lto-pgo-warn-mismatch option 2021-08-11 09:45:55 -07:00
LTOCodeGenerator.cpp [LTO][Legacy] Decouple option parsing from LTOCodeGenerator 2021-03-31 16:43:26 +00:00
LTOModule.cpp [LTO][Legacy] Add new API to check presence of ctor/dtor functions. 2021-07-28 12:41:56 +00:00
SummaryBasedOptimizations.cpp Internalize some cl::opt global variables or move them under namespace llvm 2021-05-07 11:15:43 -07:00
ThinLTOCodeGenerator.cpp [ThinLTO] Add TimeTrace for Thinlink step 2021-08-03 13:20:04 -07:00
UpdateCompilerUsed.cpp