aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/DeltaManager.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-10-10 19:42:17 -0700
committerMatt Arsenault <arsenm2@gmail.com>2022-10-12 17:34:03 -0700
commit573a5de7551cd33d00e67e4653d8c4e9e886b68b (patch)
tree3601486e3d3ddab9ae7007c51d614438d1846bec /llvm/tools/llvm-reduce/DeltaManager.cpp
parentadabce41185910227ca276a1cfd22e76443dd238 (diff)
downloadllvm-573a5de7551cd33d00e67e4653d8c4e9e886b68b.zip
llvm-573a5de7551cd33d00e67e4653d8c4e9e886b68b.tar.gz
llvm-573a5de7551cd33d00e67e4653d8c4e9e886b68b.tar.bz2
llvm-reduce: Add opcode reduction pass
Try some dumb strength reductions to "simpler" opcodes. Make some opcode substitutions I typically try to get smaller MIR out of codegen. This is a bit target specific and I have a lot of increasingly target specific modifications I try during manual reduction.
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.cpp')
-rw-r--r--llvm/tools/llvm-reduce/DeltaManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp
index 2bd9b28..e544d27 100644
--- a/llvm/tools/llvm-reduce/DeltaManager.cpp
+++ b/llvm/tools/llvm-reduce/DeltaManager.cpp
@@ -32,6 +32,7 @@
#include "deltas/ReduceInstructionsMIR.h"
#include "deltas/ReduceMetadata.h"
#include "deltas/ReduceModuleData.h"
+#include "deltas/ReduceOpcodes.h"
#include "deltas/ReduceOperandBundles.h"
#include "deltas/ReduceOperands.h"
#include "deltas/ReduceOperandsSkip.h"
@@ -89,6 +90,7 @@ static cl::list<std::string>
DELTA_PASS("simplify-cfg", reduceUsingSimplifyCFGDeltaPass) \
DELTA_PASS("attributes", reduceAttributesDeltaPass) \
DELTA_PASS("module-data", reduceModuleDataDeltaPass) \
+ DELTA_PASS("opcodes", reduceOpcodesDeltaPass) \
} while (false)
#define DELTA_PASSES_MIR \