diff options
Diffstat (limited to 'src/ir/local-graph.h')
-rw-r--r-- | src/ir/local-graph.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir/local-graph.h b/src/ir/local-graph.h index 42a560c61..9e63bb3a8 100644 --- a/src/ir/local-graph.h +++ b/src/ir/local-graph.h @@ -48,6 +48,10 @@ struct LocalGraph { // param) Locations locations; // where each get and set is (for easy replacing) + // Checks if two gets are equivalent, that is, definitely have the same + // value. + bool equivalent(LocalGet* a, LocalGet* b); + // Optional: compute the influence graphs between sets and gets // (useful for algorithms that propagate changes). @@ -84,6 +88,7 @@ struct LocalGraph { bool isSSA(Index x); private: + Function* func; std::set<Index> SSAIndexes; }; |