[llvm] 87687b4 - [llvm-reduce] Fix build after D113537

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 11 18:54:26 PST 2021


Author: Arthur Eubanks
Date: 2021-11-11T18:53:34-08:00
New Revision: 87687b4ff70fa889bb0e930cd98befb8b869bc9e

URL: https://github.com/llvm/llvm-project/commit/87687b4ff70fa889bb0e930cd98befb8b869bc9e
DIFF: https://github.com/llvm/llvm-project/commit/87687b4ff70fa889bb0e930cd98befb8b869bc9e.diff

LOG: [llvm-reduce] Fix build after D113537

Forgot to amend D113537 with these changes before committing.

Added: 
    

Modified: 
    llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
index c9164da5ef40..a239eca1d4e0 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
@@ -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);
 }


        


More information about the llvm-commits mailing list