Skip to content

Commit

Permalink
Reduce number of calls to symbols_defined_at
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrudPrimrose committed Sep 18, 2024
1 parent 696f5bc commit 98655d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dace/codegen/targets/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1930,8 +1930,9 @@ def _generate_MapEntry(
if var in map_param_types.keys():
var_type = map_param_types[var]
else:
var_type = dtypes.result_type_of(infer_expr_type(r[0], state_dfg.symbols_defined_at(node)),
infer_expr_type(r[1], state_dfg.symbols_defined_at(node)))
defined_symbols = state_dfg.symbols_defined_at(node)
var_type = dtypes.result_type_of(infer_expr_type(r[0], defined_symbols),
infer_expr_type(r[1], defined_symbols))

begin, end, skip = r

Expand Down

0 comments on commit 98655d6

Please sign in to comment.