We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e39cb commit 373990aCopy full SHA for 373990a
devito/ir/support/basic.py
@@ -365,9 +365,8 @@ def distance(self, other):
365
# trip count. E.g. it ranges from 0 to 3; `other` performs a
366
# constant access at 4
367
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.
+ # Note: Uses smart_ comparisons avoid evaluating expensive
+ # symbolic Lt or Gt operations,
371
# Note: Boolean is split to make the conditional short
372
# circuit more frequently for mild speedup.
373
if smart_lt(v, sit.symbolic_min) or smart_gt(v, sit.symbolic_max):
0 commit comments