Skip to content

Commit 5c121b9

Browse files
author
martin
committed
Remove the top variable from the cfg_dominator analysis.
This variable is not used anywhere, it is not clear what it's purpose is and in profiling it was shown to be expensive.
1 parent 9f6ca11 commit 5c121b9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/analyses/cfg_dominators.h

-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class cfg_dominators_templatet
3535

3636
void operator()(P &program);
3737

38-
target_sett top;
3938
T entry_node;
4039

4140
void output(std::ostream &) const;
@@ -101,10 +100,6 @@ template <class P, class T, bool post_dom>
101100
void cfg_dominators_templatet<P, T, post_dom>::initialise(P &program)
102101
{
103102
cfg(program);
104-
105-
// initialise top element
106-
for(const auto &node : cfg.entry_map)
107-
top.insert(cfg[node.second].PC);
108103
}
109104

110105
/*******************************************************************\

0 commit comments

Comments
 (0)