Skip to content

Commit 515046a

Browse files
authored
Drop unnecessary IndexedData check (#74)
1 parent 33b2896 commit 515046a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

devito/ir/equations/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def concretize_subdims(exprs, **kwargs):
191191
"""
192192
sregistry = kwargs.get('sregistry')
193193

194-
# Update based on changes in #2509
194+
# To be updated based on changes in #2509
195195
mapper = kwargs.get('concretize_mapper', {})
196196
rebuilt = {} # Rebuilt implicit dims etc which are shared between dimensions
197197

devito/passes/iet/definitions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
SizeOf, VOID, pow_to_mul)
2020
from devito.tools import as_mapper, as_list, as_tuple, filter_sorted, flatten
2121
from devito.types import (Array, ComponentAccess, CustomDimension, DeviceMap,
22-
DeviceRM, Eq, Symbol, IndexedData)
22+
DeviceRM, Eq, Symbol)
2323

2424
__all__ = ['DataManager', 'DeviceAwareDataManager', 'Storage']
2525

@@ -451,8 +451,7 @@ def place_casts(self, iet, **kwargs):
451451
# (i) Dereferencing a PointerArray, e.g., `float (*r0)[.] = (float(*)[.]) pr0[.]`
452452
# (ii) Declaring a raw pointer, e.g., `float * r0 = NULL; *malloc(&(r0), ...)
453453
defines = set(FindSymbols('defines|globals').visit(iet))
454-
bases = sorted({i.base for i in indexeds
455-
if isinstance(i.base, IndexedData)}, key=lambda i: i.name)
454+
bases = sorted({i.base for i in indexeds}, key=lambda i: i.name)
456455

457456
# Some objects don't distinguish their _C_symbol because they are known,
458457
# by construction, not to require it, thus making the generated code

0 commit comments

Comments
 (0)