Skip to content

enable collapse_vars & reduce_vars by default#1498

Closed
alexlamsl wants to merge 1 commit intomishoo:masterfrom
alexlamsl:remove_const_pragma
Closed

enable collapse_vars & reduce_vars by default#1498
alexlamsl wants to merge 1 commit intomishoo:masterfrom
alexlamsl:remove_const_pragma

Conversation

@alexlamsl
Copy link
Copy Markdown
Collaborator

fixes #1497

@alexlamsl
Copy link
Copy Markdown
Collaborator Author

In theory we can remove any special case treatment of const altogether, but given that reduce_vars is off by default let's leave it be for now. Plus it's less intrusive this way.

@alexlamsl alexlamsl changed the title deprecate /*@const*/ enable collapse_vars & reduce_vars by default Feb 23, 2017
@kzc
Copy link
Copy Markdown
Contributor

kzc commented Feb 23, 2017

+1 on enabling these optimizations by default.

@alexlamsl
Copy link
Copy Markdown
Collaborator Author

@kzc oops, I forgot you use SymbolDef.constant in #1459 - let me restore those lines

- fix corner cases in `const` optimisation
- deprecate `/*@const*/`

fixes mishoo#1497
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.

@const creeping

2 participants