[ruby-cvs:70345] nobu:r63255 (trunk): compile.c: fix unconditional branch optimization

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Apr 25 15:45:05 JST 2018


nobu	2018-04-25 15:45:05 +0900 (Wed, 25 Apr 2018)

  New Revision: 63255

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

  Log:
    compile.c: fix unconditional branch optimization
    
    * compile.c (iseq_peephole_optimize): add dummy `putnil` after a
      `jump` replacing an unconditional branch, to adjust removed
      `dup`.  [ruby-core:86666] [Bug #14708]

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


More information about the ruby-cvs mailing list