Skip to content

Commit 78c5264

Browse files
Make scripts/pipeline_generator.py usable again.
Before this commit: ``` $ utils/pass-pipeline/scripts/pipeline_generator.py utils/pass-pipeline/scripts/pipeline_generator.py Traceback (most recent call last): File "utils/pass-pipeline/scripts/pipeline_generator.py", line 15, in <module> normal_pipeline = [x for x in pass_pipeline_library.normal_passpipelines()] File "/path/to/swift/utils/pass-pipeline/src/pass_pipeline_library.py", line 106, in normal_passpipelines x.addPass(specialization_passlist()) NameError: global name 'specialization_passlist' is not defined ``` After this commit: ``` $ utils/pass-pipeline/scripts/pipeline_generator.py [ [ "HighLevel", "run_n_times", 2, "SimplifyCFG", … ```
1 parent 8338233 commit 78c5264

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

utils/pass-pipeline/src/pass_pipeline_library.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ def lower_passlist():
102102
def normal_passpipelines():
103103
result = []
104104

105-
x = ppipe.PassPipeline('PreSpecialize', {'name': 'run_to_fixed_point'})
106-
x.addPass(specialization_passlist())
107-
result.append(x)
108-
109105
x = ppipe.PassPipeline('HighLevel', {'name': 'run_n_times', 'count': 2})
110106
x.addPass(ssapass_passlist('high'))
111107
result.append(x)

0 commit comments

Comments
 (0)