diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2022-10-10 19:42:17 -0700 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2022-10-12 17:34:03 -0700 |
commit | 573a5de7551cd33d00e67e4653d8c4e9e886b68b (patch) | |
tree | 3601486e3d3ddab9ae7007c51d614438d1846bec /llvm/tools/llvm-reduce/DeltaManager.cpp | |
parent | adabce41185910227ca276a1cfd22e76443dd238 (diff) | |
download | llvm-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.cpp | 2 |
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 \ |