|
@@ -42,7 +42,9 @@ class FlowGraphComponent(object):
|
|
|
def create_graph_component(entry_point):
|
|
|
"""Creates a flow graph component from the given entry point."""
|
|
|
reachable = cfg_optimization.get_all_reachable_blocks(entry_point)
|
|
|
- return FlowGraphComponent([entry_point], reachable[entry_point], reachable)
|
|
|
+ all_blocks = set(reachable[entry_point])
|
|
|
+ all_blocks.add(entry_point)
|
|
|
+ return FlowGraphComponent([entry_point], all_blocks, reachable)
|
|
|
|
|
|
class SimpleBlock(object):
|
|
|
"""A 'simple' block in the relooper algorithm."""
|