Skip to content

Commit

Permalink
compiler: Drop .find where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Sep 6, 2023
1 parent da40050 commit 6420df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/ir/support/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def __init__(self, exprs, rules=None):
# Objects altering the control flow (e.g., synchronization barriers,
# break statements, ...) are converted into mock dependences
for i, e in enumerate(exprs):
if e.find(Barrier) | e.find(Jump):
if isinstance(e.rhs, (Barrier, Jump)):
self.writes.setdefault(mocksym, []).append(
TimedAccess(mocksym, 'W', i, e.ispace)
)
Expand Down

0 comments on commit 6420df3

Please sign in to comment.