aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/DeltaManager.cpp
diff options
context:
space:
mode:
authorJohn Regehr <regehr@cs.utah.edu>2022-08-15 15:45:20 -0600
committerJohn Regehr <regehr@cs.utah.edu>2022-08-15 15:45:20 -0600
commit2f1fa6242a1fff0743f74b67f9ea6c08259acfa1 (patch)
treee08bc4fb3ad001431e801fb3e1251f3a613b8dff /llvm/tools/llvm-reduce/DeltaManager.cpp
parent633f5663c37a670e28040cadd938200abd854483 (diff)
downloadllvm-2f1fa6242a1fff0743f74b67f9ea6c08259acfa1.zip
llvm-2f1fa6242a1fff0743f74b67f9ea6c08259acfa1.tar.gz
llvm-2f1fa6242a1fff0743f74b67f9ea6c08259acfa1.tar.bz2
this pass calls simplifyCFG on individual basic blocks; we want this
so that we can reduce away incidental parts of the CFG in cases where the full simplifyCFG pass makes the test case uninteresting Differential Revision: https://reviews.llvm.org/D131920
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 5fa0376..89fd33b 100644
--- a/llvm/tools/llvm-reduce/DeltaManager.cpp
+++ b/llvm/tools/llvm-reduce/DeltaManager.cpp
@@ -39,6 +39,7 @@
#include "deltas/ReduceRegisterMasks.h"
#include "deltas/ReduceRegisterUses.h"
#include "deltas/ReduceSpecialGlobals.h"
+#include "deltas/ReduceUsingSimplifyCFG.h"
#include "deltas/ReduceVirtualRegisters.h"
#include "deltas/RunIRPasses.h"
#include "deltas/SimplifyInstructions.h"
@@ -75,6 +76,7 @@ static cl::opt<std::string>
DELTA_PASS("operands-to-args", reduceOperandsToArgsDeltaPass) \
DELTA_PASS("operands-skip", reduceOperandsSkipDeltaPass) \
DELTA_PASS("operand-bundles", reduceOperandBundesDeltaPass) \
+ DELTA_PASS("simplify-cfg", reduceUsingSimplifyCFGDeltaPass) \
DELTA_PASS("attributes", reduceAttributesDeltaPass) \
DELTA_PASS("module-data", reduceModuleDataDeltaPass) \
} while (false)