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 bug in parallel pipelines caused by false reporting of fids #568

Draft
wants to merge 1 commit into
base: future
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions compiler/ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,19 +583,20 @@ def combine_common_files(self):

## Returns all the file identifiers in the IR.
def all_fids(self):
all_fids = [fid for fid, _from_node, _to_node in self.edges.values()]
all_fids = [fid for fid, from_node, to_node in self.edges.values()
if (from_node is not None or to_node is not None)]
return all_fids

## Returns all input fids of the IR
def all_input_fids(self):
all_input_fids = [fid for fid, from_node, _to_node in self.edges.values()
if from_node is None]
all_input_fids = [fid for fid, from_node, to_node in self.edges.values()
if from_node is None and to_node is not None]
return all_input_fids

## Returns all output fids of the IR
def all_output_fids(self):
all_output_fids = [fid for fid, _from_node, to_node in self.edges.values()
if to_node is None]
all_output_fids = [fid for fid, from_node, to_node in self.edges.values()
if to_node is None and from_node is not None]
return all_output_fids

## Returns the sources of the IR.
Expand Down