From 1d6c47ad2bb2ed6aef76107fb345fbf4cb024cb4 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Tue, 12 Mar 2019 20:54:18 +0000 Subject: Revert "[Remarks] Add -foptimization-record-passes to filter remark emission" This reverts commit 20fff32b7d1f1a1bd417b22aa9f26ededd97a3e5. llvm-svn: 355976 --- llvm/lib/LTO/LTOCodeGenerator.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp') diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index f02907f7a86..1b1de2ba187 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/lib/LTO/LTOCodeGenerator.cpp @@ -85,12 +85,6 @@ cl::opt cl::desc("Output filename for pass remarks"), cl::value_desc("filename")); -cl::opt - LTORemarksPasses("lto-pass-remarks-filter", - cl::desc("Only record optimization remarks from passes " - "whose names match the given regular expression"), - cl::value_desc("regex")); - cl::opt LTOPassRemarksWithHotness( "lto-pass-remarks-with-hotness", cl::desc("With PGO, include profile count in optimization remarks"), @@ -511,7 +505,7 @@ bool LTOCodeGenerator::optimize(bool DisableVerify, bool DisableInline, return false; auto DiagFileOrErr = lto::setupOptimizationRemarks( - Context, LTORemarksFilename, LTORemarksPasses, LTOPassRemarksWithHotness); + Context, LTORemarksFilename, LTOPassRemarksWithHotness); if (!DiagFileOrErr) { errs() << "Error: " << toString(DiagFileOrErr.takeError()) << "\n"; report_fatal_error("Can't get an output file for the remarks"); -- cgit v1.2.3