Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #6102. Problem with non-unique label. #6116

Merged
merged 3 commits into from
Aug 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions numba/parfors/parfor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2700,6 +2700,9 @@ class ParforPass(ParforPassStates):
def _pre_run(self):
# run array analysis, a pre-requisite for parfor translation
self.array_analysis.run(self.func_ir.blocks)
# NOTE: Prepare _max_label. See #6102
ir_utils._max_label = max(ir_utils._max_label,
ir_utils.find_max_label(self.func_ir.blocks))

def run(self):
"""run parfor conversion pass: replace Numpy calls
Expand Down