Skip to content

Commit

Permalink
llvm-reduce: Run instruction reduction last
Browse files Browse the repository at this point in the history
With the current state of mir support, this is going to generate
a large number of verifier errors. Running the use and def
reductions first helps to mitigate the impact of this.
  • Loading branch information
arsenm committed Feb 14, 2023
1 parent 04f6934 commit 463ab1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/llvm-reduce/DeltaManager.cpp
Expand Up @@ -112,7 +112,6 @@ static cl::list<std::string>

#define DELTA_PASSES_MIR \
do { \
DELTA_PASS("instructions", reduceInstructionsMIRDeltaPass) \
DELTA_PASS("ir-instruction-references", \
reduceIRInstructionReferencesDeltaPass) \
DELTA_PASS("ir-block-references", reduceIRBlockReferencesDeltaPass) \
Expand All @@ -122,6 +121,7 @@ static cl::list<std::string>
DELTA_PASS("register-defs", reduceRegisterDefsMIRDeltaPass) \
DELTA_PASS("register-hints", reduceVirtualRegisterHintsDeltaPass) \
DELTA_PASS("register-masks", reduceRegisterMasksMIRDeltaPass) \
DELTA_PASS("instructions", reduceInstructionsMIRDeltaPass) \
} while (false)

static void runAllDeltaPasses(TestRunner &Tester,
Expand Down

0 comments on commit 463ab1e

Please sign in to comment.