Skip to content

Conversation

@tpoterba
Copy link
Contributor

No description provided.


case InsertFields(struct, Seq(), _) => struct

case Let(x, InsertFields(insertedChild, insFields, ord1), InsertFields(Ref(x2, _), fields, ord2)) if x2 == x && {
Copy link
Contributor

Choose a reason for hiding this comment

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

I really want tests that would be bad to rewrite and check that we get the expected value. Is it hard to add that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will give it a go, yeah

@tpoterba tpoterba force-pushed the simplify-nested-inserts branch from 089492c to 9421f05 Compare June 26, 2019 14:47
@tpoterba
Copy link
Contributor Author

added tests and narrowed the match. I had a bug that generated invalid IR if the insertedChild here wasn't a ref.

@danking danking merged commit f46ce14 into hail-is:master Jun 26, 2019
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