summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2023-01-16 11:00:01 -0500
committerMatt Arsenault <arsenm2@gmail.com>2023-01-19 21:35:26 -0400
commit23cc36e4765912a1bcdbbc3fb8b0976a06dea043 (patch)
tree0da90d1957a255c609a69050f8f5c999056a336c /llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
parent60834105d85cba27e1e1b2b4ecf4cd658019d867 (diff)
downloadllvm-23cc36e4765912a1bcdbbc3fb8b0976a06dea043.tar.gz
llvm-reduce: Use consistent ReductionFunc types
Some of these were relying on ReducerWorkItem's operator Module&.
Diffstat (limited to 'llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp')
-rw-r--r--llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
index 4acc77bb883f..77131008dee4 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
@@ -253,7 +253,9 @@ static Value *reduceInstruction(Oracle &O, Module &M, Instruction &I) {
return nullptr;
}
-static void replaceOpcodesInModule(Oracle &O, Module &Mod) {
+static void replaceOpcodesInModule(Oracle &O, ReducerWorkItem &WorkItem) {
+ Module &Mod = WorkItem.getModule();
+
for (Function &F : Mod) {
for (BasicBlock &BB : F)
for (Instruction &I : make_early_inc_range(BB)) {