From 65f4bc64c48506d53b0525e4480e889e6af3d3d2 Mon Sep 17 00:00:00 2001 From: Edoardo Paone Date: Wed, 20 Nov 2024 08:09:32 +0100 Subject: [PATCH] remove extra change --- src/gt4py/next/iterator/transforms/prune_casts.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gt4py/next/iterator/transforms/prune_casts.py b/src/gt4py/next/iterator/transforms/prune_casts.py index 4f7c5654c7..c825f68a5f 100644 --- a/src/gt4py/next/iterator/transforms/prune_casts.py +++ b/src/gt4py/next/iterator/transforms/prune_casts.py @@ -9,7 +9,6 @@ from gt4py import eve from gt4py.next.iterator import ir from gt4py.next.iterator.ir_utils import common_pattern_matcher as cpm -from gt4py.next.iterator.type_system import inference as ir_type_inference from gt4py.next.type_system import type_specifications as ts @@ -24,9 +23,7 @@ class PruneCasts(eve.NodeTranslator): PRESERVED_ANNEX_ATTRS = ("domain",) def visit_FunCall(self, node: ir.FunCall) -> ir.Node: - original_node = node.copy(update={}) node = self.generic_visit(node) - ir_type_inference.copy_type(original_node, node) if cpm.is_call_to(node, "cast_"): value, type_constructor = node.args