summaryrefslogtreecommitdiff
path: root/src/passes/Souperify.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-09-04 14:47:19 -0700
committerGitHub <noreply@github.com>2024-09-04 14:47:19 -0700
commit0812ad3564ab802db5c2df7f0fe9fdb22709a535 (patch)
tree6ad2dabc342652f2fcc48bb7bc92ffba211ed021 /src/passes/Souperify.cpp
parent9671b985aca3ce8ee18e7886229ba03c02e73fac (diff)
downloadbinaryen-0812ad3564ab802db5c2df7f0fe9fdb22709a535.tar.gz
binaryen-0812ad3564ab802db5c2df7f0fe9fdb22709a535.tar.bz2
binaryen-0812ad3564ab802db5c2df7f0fe9fdb22709a535.zip
[NFC] Convert LocalGraph influences accesses to function calls (#6899)
This replaces direct access of the data structure graph.*influences[foo] with a call graph.get*influences(foo). This will allow a later PR to make those calls optionally lazy.
Diffstat (limited to 'src/passes/Souperify.cpp')
-rw-r--r--src/passes/Souperify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/Souperify.cpp b/src/passes/Souperify.cpp
index 913a58e81..826c3f350 100644
--- a/src/passes/Souperify.cpp
+++ b/src/passes/Souperify.cpp
@@ -90,7 +90,7 @@ struct UseFinder {
return;
}
// Find all the uses of that set.
- auto& gets = localGraph.setInfluences[set];
+ auto& gets = localGraph.getSetInfluences(set);
if (debug() >= 2) {
std::cout << "addSetUses for " << set << ", " << gets.size() << " gets\n";
}
@@ -98,7 +98,7 @@ struct UseFinder {
// Each of these relevant gets is either
// (1) a child of a set, which we can track, or
// (2) not a child of a set, e.g., a call argument or such
- auto& sets = localGraph.getInfluences[get]; // TODO: iterator
+ auto& sets = localGraph.getGetInfluences(get); // TODO: iterator
// In flat IR, each get can influence at most 1 set.
assert(sets.size() <= 1);
if (sets.size() == 0) {