Commit 5bac3a3f authored by Vitja Makarov's avatar Vitja Makarov

Rename CreateControlFlowGraph to ControlFlowAnalysis

parent f9483650
...@@ -553,9 +553,7 @@ class AssignmentCollector(TreeVisitor): ...@@ -553,9 +553,7 @@ class AssignmentCollector(TreeVisitor):
self.assignments.append((lhs, node.rhs)) self.assignments.append((lhs, node.rhs))
class CreateControlFlowGraph(CythonTransform): class ControlFlowAnalysis(CythonTransform):
"""Create NameNode use and assignment graph."""
in_inplace_assignment = False in_inplace_assignment = False
def visit_ModuleNode(self, node): def visit_ModuleNode(self, node):
......
...@@ -132,7 +132,7 @@ def create_pipeline(context, mode, exclude_classes=()): ...@@ -132,7 +132,7 @@ def create_pipeline(context, mode, exclude_classes=()):
from TypeInference import MarkAssignments, MarkOverflowingArithmetic from TypeInference import MarkAssignments, MarkOverflowingArithmetic
from ParseTreeTransforms import AdjustDefByDirectives, AlignFunctionDefinitions from ParseTreeTransforms import AdjustDefByDirectives, AlignFunctionDefinitions
from ParseTreeTransforms import RemoveUnreachableCode, GilCheck from ParseTreeTransforms import RemoveUnreachableCode, GilCheck
from FlowControl import CreateControlFlowGraph from FlowControl import ControlFlowAnalysis
from AnalysedTreeTransforms import AutoTestDictTransform from AnalysedTreeTransforms import AutoTestDictTransform
from AutoDocTransforms import EmbedSignature from AutoDocTransforms import EmbedSignature
from Optimize import FlattenInListTransform, SwitchTransform, IterationTransform from Optimize import FlattenInListTransform, SwitchTransform, IterationTransform
...@@ -179,7 +179,7 @@ def create_pipeline(context, mode, exclude_classes=()): ...@@ -179,7 +179,7 @@ def create_pipeline(context, mode, exclude_classes=()):
EarlyReplaceBuiltinCalls(context), ## Necessary? EarlyReplaceBuiltinCalls(context), ## Necessary?
TransformBuiltinMethods(context), ## Necessary? TransformBuiltinMethods(context), ## Necessary?
MarkAssignments(context), MarkAssignments(context),
CreateControlFlowGraph(context), ControlFlowAnalysis(context),
RemoveUnreachableCode(context), RemoveUnreachableCode(context),
# MarkAssignments(context), # MarkAssignments(context),
MarkOverflowingArithmetic(context), MarkOverflowingArithmetic(context),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment