Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve expression structure of in Expression.(__add__|__mul__|...) #93

Closed
wants to merge 3 commits into from

Conversation

kaushikcfd
Copy link
Collaborator

@kaushikcfd kaushikcfd commented Apr 27, 2022

It was suggested in inducer/pytato#217 that we should preserve the structure of the expressions. This PR implements the points discussed over there.

Draft because:

  • Fails CI

@kaushikcfd kaushikcfd changed the title Get rid of autoflattening Preserve expression structure of in Expression.(__add__|__mul__|...) Apr 27, 2022
@kaushikcfd kaushikcfd marked this pull request as draft April 27, 2022 22:57
Comment on lines -438 to -440
if all(child is orig_child
for child, orig_child in zip(children, expr.children)):
return expr
Copy link
Owner

Choose a reason for hiding this comment

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

How come these got removed? IIRC @isuruf found them essential for making no-op traversals cheap in loopy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, I'll revert them.

@kaushikcfd
Copy link
Collaborator Author

Closing in favor of #152. (/cc @inducer)

@kaushikcfd kaushikcfd closed this Oct 7, 2024
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