summaryrefslogtreecommitdiff
path: root/src/passes/Precompute.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/Precompute.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/Precompute.cpp')
-rw-r--r--src/passes/Precompute.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp
index 61220ece8..0d2df04d7 100644
--- a/src/passes/Precompute.cpp
+++ b/src/passes/Precompute.cpp
@@ -802,7 +802,7 @@ private:
}
setValues[set] = values;
if (values.isConcrete()) {
- for (auto* get : localGraph.setInfluences[set]) {
+ for (auto* get : localGraph.getSetInfluences(set)) {
work.push(get);
}
}
@@ -861,7 +861,7 @@ private:
if (values.isConcrete()) {
// we did!
getValues[get] = values;
- for (auto* set : localGraph.getInfluences[get]) {
+ for (auto* set : localGraph.getGetInfluences(get)) {
work.push(set);
}
propagated = true;