aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/DeltaManager.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-04-20 11:37:53 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2022-06-01 09:15:41 -0400
commita0dcbe45bd8387da51f94e4d171c3ecc3d266e64 (patch)
tree85370b39f3ffaa80150446372a7a86f9c14d8451 /llvm/tools/llvm-reduce/DeltaManager.cpp
parent2011052150e1a2fb8586b030126f8bec338f4cc5 (diff)
downloadllvm-a0dcbe45bd8387da51f94e4d171c3ecc3d266e64.zip
llvm-a0dcbe45bd8387da51f94e4d171c3ecc3d266e64.tar.gz
llvm-a0dcbe45bd8387da51f94e4d171c3ecc3d266e64.tar.bz2
llvm-reduce: Add reduction pass to remove regalloc hints
I'm a bit confused by what's actually stored for the allocation hints. The MIR parser only handles the "simple" case where there's a single hint. I don't really understand the assertion in clearSimpleHint, or under what circumstances there are multiple hint registers.
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.cpp')
-rw-r--r--llvm/tools/llvm-reduce/DeltaManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp
index a5b6c17..ed9d105 100644
--- a/llvm/tools/llvm-reduce/DeltaManager.cpp
+++ b/llvm/tools/llvm-reduce/DeltaManager.cpp
@@ -35,6 +35,7 @@
#include "deltas/ReduceOperandsSkip.h"
#include "deltas/ReduceOperandsToArgs.h"
#include "deltas/ReduceSpecialGlobals.h"
+#include "deltas/ReduceVirtualRegisters.h"
#include "llvm/Support/CommandLine.h"
using namespace llvm;
@@ -74,7 +75,8 @@ static cl::opt<std::string>
reduceIRInstructionReferencesDeltaPass) \
DELTA_PASS("ir-block-references", reduceIRBlockReferencesDeltaPass) \
DELTA_PASS("ir-function-references", reduceIRFunctionReferencesDeltaPass) \
- DELTA_PASS("instruction-flags", reduceInstructionFlagsMIRDeltaPass)
+ DELTA_PASS("instruction-flags", reduceInstructionFlagsMIRDeltaPass) \
+ DELTA_PASS("register-hints", reduceVirtualRegisterHintsDeltaPass)
static void runAllDeltaPasses(TestRunner &Tester) {
#define DELTA_PASS(NAME, FUNC) FUNC(Tester);