[ruby-cvs:70961] nobu:r63870 (trunk): compile.c: remove unreachable jump only

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jul 6 17:01:58 JST 2018


nobu	2018-07-06 17:01:58 +0900 (Fri, 06 Jul 2018)

  New Revision: 63870

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63870

  Log:
    compile.c: remove unreachable jump only
    
    * compile.c (iseq_peephole_optimize): remove unreachable jump
      instruction only.  if it is labeled and referred from other
      instructions, it is reachable and must not be removed.
      [ruby-core:87830] [Bug #14897]

  Modified files:
    trunk/compile.c
    trunk/test/ruby/test_optimization.rb


More information about the ruby-cvs mailing list