[ruby-cvs:67123] nobu:r59945 (trunk): compile.c: optimize unnecessary concatstrings

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Sep 17 18:21:47 JST 2017


nobu	2017-09-17 18:21:47 +0900 (Sun, 17 Sep 2017)

  New Revision: 59945

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

  Log:
    compile.c: optimize unnecessary concatstrings
    
    * compile.c (iseq_peephole_optimize): optimize away unnecessary
      concatenation of single string, following tostring which always
      puts a String instance.
      https://github.com/ruby/ruby/pull/1626#discussion_r139285653

  Modified files:
    trunk/compile.c


More information about the ruby-cvs mailing list