Skip to content

Commit 373990a

Browse files
EdCauntmloubout
authored andcommitted
misc: Update comment
1 parent d5e39cb commit 373990a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

devito/ir/support/basic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,8 @@ def distance(self, other):
365365
# trip count. E.g. it ranges from 0 to 3; `other` performs a
366366
# constant access at 4
367367
for v in (self[n], other[n]):
368-
# Note: To avoid evaluating expensive symbolic Lt or Gt operations,
369-
# we pre-empt such operations by checking if the values to be compared
370-
# to are symbolic, and skip this case if not.
368+
# Note: Uses smart_ comparisons avoid evaluating expensive
369+
# symbolic Lt or Gt operations,
371370
# Note: Boolean is split to make the conditional short
372371
# circuit more frequently for mild speedup.
373372
if smart_lt(v, sit.symbolic_min) or smart_gt(v, sit.symbolic_max):

0 commit comments

Comments
 (0)