Skip to content

Conversation

@havogt
Copy link
Contributor

@havogt havogt commented Sep 11, 2025

Applies cse in fuse_as_fieldop to simplify the tree in nested repeated operations.

TODO:

  • add benchmark test that times out before this PR
  • In icon4py TestReconstructCubicCoefficientsSvd.test_TestReconstructCubicCoefficientsSvd fails with Couldn't detect partial shift in any arguments of 'reduce'.. I have a fix for that problem, but not sure if later removal of map/make_const_list etc works.

new_stencil, opcount_preserving=True, force_inline_lift_args=True
)
new_stencil = inline_lifts.InlineLifts().visit(new_stencil)
new_stencil = cse.CommonSubexpressionElimination.apply(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try copying over the type of new_stencil

@edopao edopao marked this pull request as draft October 23, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants