Skip to content

Commit 5490ce6

Browse files
committed
compiler: Improve Properties.is_sequential
1 parent 1b6dae5 commit 5490ce6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

devito/ir/support/properties.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,6 @@ def is_inbound(self, dims):
303303
return any({INBOUND, INBOUND_IF_RELAXED}.intersection(self.get(d, set()))
304304
for d in as_tuple(dims))
305305

306-
def is_sequential(self, dims):
307-
return any(SEQUENTIAL in self.get(d, ()) for d in as_tuple(dims))
308-
309306
def is_blockable(self, d):
310307
return bool(TILABLE in self.get(d, ()))
311308

@@ -314,6 +311,9 @@ def _is_property_any(self, dims, v):
314311
dims = list(self)
315312
return any(v in self.get(d, set()) for d in as_tuple(dims))
316313

314+
def is_sequential(self, dims):
315+
return self._is_property_any(dims, SEQUENTIAL)
316+
317317
def is_prefetchable(self, dims=None, v=PREFETCHABLE):
318318
return self._is_property_any(dims, PREFETCHABLE)
319319

0 commit comments

Comments
 (0)