aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorWang, Pengfei <pengfei.wang@intel.com>2021-08-11 16:25:42 +0800
committerWang, Pengfei <pengfei.wang@intel.com>2021-08-11 16:25:42 +0800
commit6c4809825dcce24d63c59aed0d2992d383ebd86d (patch)
tree00219a902d951014b6fca486f07d751c94a3625f /llvm/lib/LTO/LTOBackend.cpp
parent8af47255766e71cb3f8aad2f631046c1834f2218 (diff)
downloadllvm-6c4809825dcce24d63c59aed0d2992d383ebd86d.zip
llvm-6c4809825dcce24d63c59aed0d2992d383ebd86d.tar.gz
llvm-6c4809825dcce24d63c59aed0d2992d383ebd86d.tar.bz2
Revert "[lld] Add lto-pgo-warn-mismatch option"
This reverts commit 0cfb00a1c98f8ca3749b8d829b7301f397efa302.
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 6445cfe..5863ec6 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -74,10 +74,6 @@ static cl::opt<bool> ThinLTOAssumeMerged(
cl::desc("Assume the input has already undergone ThinLTO function "
"importing and the other pre-optimization pipeline changes."));
-// Command line option to turn off/on warnings for pgo profile mismatch.
-// Defined in Transforms/PGOInstrumentation.cpp: -no-pgo-warn-mismatch
-extern cl::opt<bool> NoPGOWarnMismatch;
-
[[noreturn]] static void reportOpenError(StringRef Path, Twine Msg) {
errs() << "failed to open " << Path << ": " << Msg << '\n';
errs().flush();
@@ -225,7 +221,6 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
PGOOpt = PGOOptions(Conf.CSIRProfile, "", Conf.ProfileRemapping,
PGOOptions::IRUse, PGOOptions::CSIRUse,
Conf.AddFSDiscriminator);
- NoPGOWarnMismatch = !Conf.PGOWarnMismatch;
} else if (Conf.AddFSDiscriminator) {
PGOOpt = PGOOptions("", "", "", PGOOptions::NoAction,
PGOOptions::NoCSAction, true);