[NFC] Remove unused-but-set global variables (#189315)
Remove four global variables that are set but never read to fix -Wunused-but-set-global warnings: - `MFMAChainLength` in AMDGPUIGroupLP.cpp - `Wide` in llvm-objdump.cpp - `SaveTemps` in ClangSYCLLinker.cpp - `DeprecatedDriverCommand` in ClangScanDeps.cpp Follow up to #178342
This commit is contained in:
parent
d17296d013
commit
cabebddac9
@ -91,7 +91,6 @@ static std::string CompilationDB;
|
||||
static std::optional<std::string> ModuleNames;
|
||||
static std::vector<std::string> ModuleDepTargets;
|
||||
static std::string TranslationUnitFile;
|
||||
static bool DeprecatedDriverCommand;
|
||||
static ResourceDirRecipeKind ResourceDirRecipe;
|
||||
static bool Verbose;
|
||||
static bool AsyncScanModules;
|
||||
@ -216,8 +215,6 @@ static void ParseArgs(int argc, char **argv) {
|
||||
if (const llvm::opt::Arg *A = Args.getLastArg(OPT_tu_buffer_path_EQ))
|
||||
TranslationUnitFile = A->getValue();
|
||||
|
||||
DeprecatedDriverCommand = Args.hasArg(OPT_deprecated_driver_command);
|
||||
|
||||
if (const llvm::opt::Arg *A = Args.getLastArg(OPT_resource_dir_recipe_EQ)) {
|
||||
auto Kind =
|
||||
llvm::StringSwitch<std::optional<ResourceDirRecipeKind>>(A->getValue())
|
||||
|
||||
@ -52,9 +52,6 @@ using namespace llvm::opt;
|
||||
using namespace llvm::object;
|
||||
using namespace clang;
|
||||
|
||||
/// Save intermediary results.
|
||||
static bool SaveTemps = false;
|
||||
|
||||
/// Print commands/steps with arguments without executing.
|
||||
static bool DryRun = false;
|
||||
|
||||
@ -591,7 +588,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
Verbose = Args.hasArg(OPT_verbose);
|
||||
DryRun = Args.hasArg(OPT_dry_run);
|
||||
SaveTemps = Args.hasArg(OPT_save_temps);
|
||||
|
||||
if (!Args.hasArg(OPT_o))
|
||||
reportError(createStringError("Output file must be specified"));
|
||||
|
||||
@ -910,8 +910,6 @@ private:
|
||||
static unsigned ExpRequirement;
|
||||
// The count of independent "chains" of MFMA instructions in the pipeline
|
||||
static unsigned MFMAChains;
|
||||
// The length of each independent "chain" of MFMA instructions
|
||||
static unsigned MFMAChainLength;
|
||||
// Whether or not the pipeline has V_CVT instructions
|
||||
static bool HasCvt;
|
||||
// Whether or not there are instructions between the TRANS instruction and
|
||||
@ -1340,7 +1338,6 @@ unsigned MFMAExpInterleaveOpt::AddPipeCount = 0;
|
||||
unsigned MFMAExpInterleaveOpt::MFMAEnablement = 0;
|
||||
unsigned MFMAExpInterleaveOpt::ExpRequirement = 0;
|
||||
unsigned MFMAExpInterleaveOpt::MFMAChains = 0;
|
||||
unsigned MFMAExpInterleaveOpt::MFMAChainLength = 0;
|
||||
bool MFMAExpInterleaveOpt::HasCvt = false;
|
||||
bool MFMAExpInterleaveOpt::HasChainBetweenCvt = false;
|
||||
std::optional<unsigned> MFMAExpInterleaveOpt::FirstPipeDSR = std::nullopt;
|
||||
@ -1478,8 +1475,6 @@ bool MFMAExpInterleaveOpt::analyzeDAG(const SIInstrInfo *TII) {
|
||||
FirstPipeDSR = Pred.getSUnit()->NodeNum;
|
||||
}
|
||||
|
||||
MFMAChainLength = MFMAPipeCount / MFMAChains;
|
||||
|
||||
// The number of bit pack operations that depend on a single V_EXP
|
||||
unsigned PackSuccCount =
|
||||
llvm::count_if(PackSUs, [this, &TempExp](SUnit *VPack) {
|
||||
|
||||
@ -340,7 +340,6 @@ static bool PrettyPGOAnalysisMap;
|
||||
static bool DynamicSymbolTable;
|
||||
std::string objdump::TripleName;
|
||||
bool objdump::UnwindInfo;
|
||||
static bool Wide;
|
||||
std::string objdump::Prefix;
|
||||
uint32_t objdump::PrefixStrip;
|
||||
|
||||
@ -3764,7 +3763,6 @@ static void parseObjdumpOptions(const llvm::opt::InputArgList &InputArgs) {
|
||||
DynamicSymbolTable = InputArgs.hasArg(OBJDUMP_dynamic_syms);
|
||||
TripleName = InputArgs.getLastArgValue(OBJDUMP_triple_EQ).str();
|
||||
UnwindInfo = InputArgs.hasArg(OBJDUMP_unwind_info);
|
||||
Wide = InputArgs.hasArg(OBJDUMP_wide);
|
||||
Prefix = InputArgs.getLastArgValue(OBJDUMP_prefix).str();
|
||||
parseIntArg(InputArgs, OBJDUMP_prefix_strip, PrefixStrip);
|
||||
if (const opt::Arg *A = InputArgs.getLastArg(OBJDUMP_debug_vars_EQ)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user