diff options
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.cpp')
-rw-r--r-- | llvm/tools/llvm-reduce/DeltaManager.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp index 8dd16b0..dab4040 100644 --- a/llvm/tools/llvm-reduce/DeltaManager.cpp +++ b/llvm/tools/llvm-reduce/DeltaManager.cpp @@ -24,7 +24,6 @@ #include "deltas/ReduceGlobalVarInitializers.h" #include "deltas/ReduceGlobalVars.h" #include "deltas/ReduceInstructions.h" -#include "deltas/ReduceInstructionsMIR.h" #include "deltas/ReduceMetadata.h" #include "deltas/ReduceModuleData.h" #include "deltas/ReduceOperandBundles.h" @@ -60,16 +59,9 @@ static cl::opt<std::string> DELTA_PASS("attributes", reduceAttributesDeltaPass) \ DELTA_PASS("module-data", reduceModuleDataDeltaPass) -#define DELTA_PASSES_MIR \ - DELTA_PASS("instructions", reduceInstructionsMIRDeltaPass) - static void runAllDeltaPasses(TestRunner &Tester) { #define DELTA_PASS(NAME, FUNC) FUNC(Tester); - if (Tester.getProgram().isMIR()) { - DELTA_PASSES_MIR - } else { - DELTA_PASSES - } + DELTA_PASSES #undef DELTA_PASS } @@ -79,11 +71,7 @@ static void runDeltaPassName(TestRunner &Tester, StringRef PassName) { FUNC(Tester); \ return; \ } - if (Tester.getProgram().isMIR()) { - DELTA_PASSES_MIR - } else { - DELTA_PASSES - } + DELTA_PASSES #undef DELTA_PASS errs() << "unknown pass \"" << PassName << "\""; exit(1); @@ -92,10 +80,7 @@ static void runDeltaPassName(TestRunner &Tester, StringRef PassName) { void llvm::printDeltaPasses(raw_ostream &OS) { OS << "Delta passes (pass to `--delta-passes=` as a comma separated list):\n"; #define DELTA_PASS(NAME, FUNC) OS << " " << NAME << "\n"; - OS << " IR:\n"; DELTA_PASSES - OS << " MIR:\n"; - DELTA_PASSES_MIR #undef DELTA_PASS } |