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

Optimize condition for unless #1092

Closed
wants to merge 1 commit into from
Closed

Optimize condition for unless #1092

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 12, 2015

9443203
applied a patch that optimizes k_if and modifier_if for trivial conditions. This patch applies the same optimizations to k_unless and modifier_unless.

@nobu nobu closed this in aa4ab18 Nov 13, 2015
sonots pushed a commit to sonots/ruby that referenced this pull request Nov 17, 2015
* parse.y (new_unless): optimize constant condition for `unless`
  as well as `if`.  [Fix rubyGH-1092]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
0 participants