Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dace-gtir-casts' into dace-gtir-…
Browse files Browse the repository at this point in the history
…index
  • Loading branch information
edopao committed Nov 20, 2024
2 parents 4b2f00f + 65f4bc6 commit c4b4e08
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/gt4py/next/iterator/transforms/prune_casts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
Expand Down

0 comments on commit c4b4e08

Please sign in to comment.