Skip to content

Commit

Permalink
Minor fix in WCR special case handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastruemper committed Sep 5, 2023
1 parent 9c73a2f commit 736caca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dace/transformation/dataflow/wcr_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def can_be_applied(self, graph, expr_index, sdfg, permissive=False):
func_rhs = r'^\s*%s\s*=\s*(%s)\(.*,\s*%s\s*\)\s*;$' % (re.escape(outconn), funcs, re.escape(inconn))
if re.match(lhs, cstr) is None and re.match(rhs, cstr) is None:
if re.match(func_lhs, cstr) is None and re.match(func_rhs, cstr) is None:
inconns = [edge.dst_conn for edge in inedges]
inconns = list(self.tasklet.in_connectors)
if len(inconns) != 2:
continue

Expand Down Expand Up @@ -236,7 +236,7 @@ def apply(self, state: SDFGState, sdfg: SDFG):
re.escape(inconn))
match = re.match(func_lhs, cstr)
if match is None:
inconns = [edge.dst_conn for edge in inedges]
inconns = list(self.tasklet.in_connectors)
if len(inconns) != 2:
continue

Expand Down

0 comments on commit 736caca

Please sign in to comment.