Skip to content

Commit 055db03

Browse files
committed
compiler: Tweak pairwise_or
1 parent 6673cd5 commit 055db03

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

devito/ir/support/guards.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,9 @@ def pairwise_or(*guards):
500500

501501
# Analysis
502502
for guard in guards:
503-
if guard is true or guard is None:
503+
if guard is true:
504+
return true
505+
elif guard is None:
504506
continue
505507
elif isinstance(guard, And):
506508
components = guard.args

0 commit comments

Comments
 (0)