diff --git a/loopy/kernel/instruction.py b/loopy/kernel/instruction.py index 9e1ef233c0cea2f7954ccee7d6ec3238771e29e4..93642103e50da5aabfcb7bd86cc50ce6ff903a18 100644 --- a/loopy/kernel/instruction.py +++ b/loopy/kernel/instruction.py @@ -407,19 +407,6 @@ class InstructionBase(ImmutableRecord): # {{{ comparison, hashing - def __eq__(self, other): - if not type(self) == type(other): - return False - - for field_name in self.fields: - if getattr(self, field_name) != getattr(other, field_name): - return False - - return True - - def __ne__(self, other): - return not self.__eq__(other) - def update_persistent_hash(self, key_hash, key_builder): """Custom hash computation function for use with :class:`pytools.persistent_dict.PersistentDict`.