From: Matt Arsenault Date: Fri, 10 Feb 2023 14:00:53 +0000 (-0400) Subject: llvm-reduce: Run instruction reduction last X-Git-Tag: upstream/17.0.6~17611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=463ab1e07a0a15a9aa129639048e29e0f8ec4dc8;p=platform%2Fupstream%2Fllvm.git llvm-reduce: Run instruction reduction last 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. --- diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp index bfe299c8b757..d3f1c2b509f1 100644 --- a/llvm/tools/llvm-reduce/DeltaManager.cpp +++ b/llvm/tools/llvm-reduce/DeltaManager.cpp @@ -112,7 +112,6 @@ static cl::list #define DELTA_PASSES_MIR \ do { \ - DELTA_PASS("instructions", reduceInstructionsMIRDeltaPass) \ DELTA_PASS("ir-instruction-references", \ reduceIRInstructionReferencesDeltaPass) \ DELTA_PASS("ir-block-references", reduceIRBlockReferencesDeltaPass) \ @@ -122,6 +121,7 @@ static cl::list 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,