Skip to content

Fix constant folding - #6468

Merged
anandthakker merged 5 commits into
masterfrom
fix-constant-folding
Apr 9, 2018
Merged

anandthakker merged 5 commits into
masterfrom
fix-constant-folding

Conversation

@anandthakker

@anandthakker anandthakker commented Apr 6, 2018 •

Copy link
Copy Markdown
Contributor

@anandthakker

Copy link
Copy Markdown
Contributor Author

I included #6253 in this work because I realized belatedly that it's the most natural way to test the changes.

@anandthakker

anandthakker commented Apr 6, 2018 •

Copy link
Copy Markdown
Contributor Author

I included #6253 in this work because I realized belatedly that it's the most natural way to test the changes.

Actually I'll just extract this into a separate PR ( #6469 )

@anandthakker
anandthakker force-pushed the fix-constant-folding branch from 5c17dab to ad80a89 Compare April 6, 2018 16:55
@anandthakker
anandthakker removed the request for review from ChrisLoer April 6, 2018 16:56
@mollymerp mollymerp assigned mollymerp and unassigned mollymerp Apr 6, 2018
@anandthakker
anandthakker force-pushed the fix-constant-folding branch from ad80a89 to c17d3ac Compare April 6, 2018 17:34
@anandthakker

Copy link
Copy Markdown
Contributor Author

Alright, rebased now that Expression#serlialize() is in master.

@jfirebaugh jfirebaugh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, although I have a lingering instinct that isConstant and friends are missing some simplifying abstraction that would make them more straightforward and less dependent on checking a bunch of highly specific conditionals.

@anandthakker

Copy link
Copy Markdown
Contributor Author

I have a lingering instinct that isConstant and friends are missing some simplifying abstraction that would make them more straightforward and less dependent on checking a bunch of highly specific conditionals

Yeah, I've had the same feeling, but haven't had an idea for the right abstraction click into place yet

@mollymerp mollymerp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 looks good to me!

@anandthakker
anandthakker merged commit b018592 into master Apr 9, 2018
@anandthakker
anandthakker deleted the fix-constant-folding branch April 9, 2018 20:57
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.

3 participants