summaryrefslogtreecommitdiff
path: root/src/ir/local-graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/local-graph.h')
-rw-r--r--src/ir/local-graph.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ir/local-graph.h b/src/ir/local-graph.h
index 9e63bb3a8..2e4fdf0fe 100644
--- a/src/ir/local-graph.h
+++ b/src/ir/local-graph.h
@@ -55,7 +55,13 @@ struct LocalGraph {
// Optional: compute the influence graphs between sets and gets
// (useful for algorithms that propagate changes).
- void computeInfluences();
+ void computeSetInfluences();
+ void computeGetInfluences();
+
+ void computeInfluences() {
+ computeSetInfluences();
+ computeGetInfluences();
+ }
// for each get, the sets whose values are influenced by that get
std::unordered_map<LocalGet*, std::unordered_set<LocalSet*>> getInfluences;