[llvm] abf44b5 - llvm-reduce: Use consistent type for reducer function
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 27 16:15:04 PST 2023
Author: Matt Arsenault
Date: 2023-01-27T20:08:44-04:00
New Revision: abf44b5b1dbff845a59a7be0c57553cbfd6c4f4c
URL: https://github.com/llvm/llvm-project/commit/abf44b5b1dbff845a59a7be0c57553cbfd6c4f4c
DIFF: https://github.com/llvm/llvm-project/commit/abf44b5b1dbff845a59a7be0c57553cbfd6c4f4c.diff
LOG: llvm-reduce: Use consistent type for reducer function
Added:
Modified:
llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp b/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp
index d889b3ebebe6b..2f2df549b6728 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp
@@ -31,15 +31,17 @@ static void extractAliasesFromModule(Oracle &O, ReducerWorkItem &Program) {
}
}
-static void extractIFuncsFromModule(Oracle &O, Module &Program) {
+static void extractIFuncsFromModule(Oracle &O, ReducerWorkItem &WorkItem) {
+ Module &Mod = WorkItem.getModule();
+
std::vector<GlobalIFunc *> IFuncs;
- for (GlobalIFunc &GI : Program.ifuncs()) {
+ for (GlobalIFunc &GI : Mod.ifuncs()) {
if (!O.shouldKeep())
IFuncs.push_back(&GI);
}
if (!IFuncs.empty())
- lowerGlobalIFuncUsersAsGlobalCtor(Program, IFuncs);
+ lowerGlobalIFuncUsersAsGlobalCtor(Mod, IFuncs);
}
void llvm::reduceAliasesDeltaPass(TestRunner &Test) {
More information about the llvm-commits
mailing list