Project

General

Profile

« Previous | Next » 

Revision 4a23f069

Added by nobu (Nobuyoshi Nakada) almost 10 years ago

compile.c: optimize useless branches

  • compile.c (iseq_peephole_optimize): eliminate always/never
    branches after a literal object. this sequence typically
    appears by defined? operator for a method call on a local
    variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e