Commit dbf35da5 authored by Martin Bauer's avatar Martin Bauer
Browse files

Removed now unnecessary transformation `substitute_array_accesses_with_constants`

parent 7a94740d
......@@ -82,7 +82,6 @@ def create_kernel(assignments: AssignmentOrAstNodeList, function_name: str = "ke
if any(FieldType.is_buffer(f) for f in all_fields):
resolve_buffer_accesses(ast_node, get_base_buffer_index(ast_node), read_only_fields)
resolve_field_accesses(ast_node, read_only_fields, field_to_base_pointer_info=base_pointer_info)
substitute_array_accesses_with_constants(ast_node)
move_constants_before_loop(ast_node)
ast_node.compile = partial(make_python_function, ast_node)
return ast_node
......@@ -148,7 +147,6 @@ def create_indexed_kernel(assignments: AssignmentOrAstNodeList, index_fields, fu
read_only_fields = set([f.name for f in fields_read - fields_written])
resolve_field_accesses(ast_node, read_only_fields, field_to_fixed_coordinates=fixed_coordinate_mapping)
substitute_array_accesses_with_constants(ast_node)
move_constants_before_loop(ast_node)
ast_node.compile = partial(make_python_function, ast_node)
return ast_node
......
......@@ -72,8 +72,6 @@ def create_cuda_kernel(assignments, function_name="kernel", type_info=None, inde
resolve_field_accesses(ast, read_only_fields, field_to_base_pointer_info=base_pointer_info,
field_to_fixed_coordinates=coord_mapping)
substitute_array_accesses_with_constants(ast)
# add the function which determines #blocks and #threads as additional member to KernelFunction node
# this is used by the jit
......@@ -138,7 +136,6 @@ def created_indexed_cuda_kernel(assignments, index_fields, function_name="kernel
coord_mapping.update({f.name: coordinate_typed_symbols for f in non_index_fields})
resolve_field_accesses(ast, read_only_fields, field_to_fixed_coordinates=coord_mapping,
field_to_base_pointer_info=base_pointer_info)
substitute_array_accesses_with_constants(ast)
# add the function which determines #blocks and #threads as additional member to KernelFunction node
# this is used by the jit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment