aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/DeltaManager.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-04-19 12:10:38 -0400
committerMatt Arsenault <arsenm2@gmail.com>2022-05-01 17:40:53 -0400
commit3939e99aae68ca8965f0c3b74b88aa94cee4c6fd (patch)
tree98872c7da358fcd06d1e61fddab00c97eec71fad /llvm/tools/llvm-reduce/DeltaManager.cpp
parent2019c9b1c85808ce405b9da09a3259af783c6ffa (diff)
downloadllvm-3939e99aae68ca8965f0c3b74b88aa94cee4c6fd.zip
llvm-3939e99aae68ca8965f0c3b74b88aa94cee4c6fd.tar.gz
llvm-3939e99aae68ca8965f0c3b74b88aa94cee4c6fd.tar.bz2
llvm-reduce: Add pass to reduce IR references from MIR
This is typically the first thing I do when reducing a new testcase until the IR section can be deleted.
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.cpp')
-rw-r--r--llvm/tools/llvm-reduce/DeltaManager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp
index 4abdf38..cb32d70 100644
--- a/llvm/tools/llvm-reduce/DeltaManager.cpp
+++ b/llvm/tools/llvm-reduce/DeltaManager.cpp
@@ -24,6 +24,7 @@
#include "deltas/ReduceGlobalValues.h"
#include "deltas/ReduceGlobalVarInitializers.h"
#include "deltas/ReduceGlobalVars.h"
+#include "deltas/ReduceIRReferences.h"
#include "deltas/ReduceInstructions.h"
#include "deltas/ReduceInstructionsMIR.h"
#include "deltas/ReduceMetadata.h"
@@ -67,7 +68,11 @@ static cl::opt<std::string>
DELTA_PASS("module-data", reduceModuleDataDeltaPass)
#define DELTA_PASSES_MIR \
- DELTA_PASS("instructions", reduceInstructionsMIRDeltaPass)
+ DELTA_PASS("instructions", reduceInstructionsMIRDeltaPass) \
+ DELTA_PASS("ir-instruction-references", \
+ reduceIRInstructionReferencesDeltaPass) \
+ DELTA_PASS("ir-block-references", reduceIRBlockReferencesDeltaPass) \
+ DELTA_PASS("ir-function-references", reduceIRFunctionReferencesDeltaPass)
static void runAllDeltaPasses(TestRunner &Tester) {
#define DELTA_PASS(NAME, FUNC) FUNC(Tester);