Skip to content

Commit

Permalink
[llvm-reduce] Fix build after D113537
Browse files Browse the repository at this point in the history
Forgot to amend D113537 with these changes before committing.
  • Loading branch information
aeubanks committed Nov 12, 2021
1 parent 6f288bd commit 87687b4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
Expand Up @@ -217,20 +217,7 @@ static void extractOperandsFromModule(Oracle &O, Module &Program) {
}
}

static int countOperands(Module &Program) {
int Count = 0;

for (Function &F : Program.functions()) {
opportunities(F, [&](Use &Op, ArrayRef<Value *> Candidates) {
Count += llvm::size(Candidates);
});
}

return Count;
}

void llvm::reduceOperandsSkipDeltaPass(TestRunner &Test) {
errs() << "*** Reducing operands by skipping over instructions ...\n";
int Count = countOperands(Test.getProgram());
runDeltaPass(Test, Count, extractOperandsFromModule);
runDeltaPass(Test, extractOperandsFromModule);
}

0 comments on commit 87687b4

Please sign in to comment.