From: Mike Pall Date: Sun, 28 Apr 2013 09:31:41 +0000 (+0200) Subject: Inhibit CSE for table.concat(). X-Git-Tag: v2.1.0-beta1~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87993a601d2ebce6597180040d2e97d74d6cdcc4;p=thirdparty%2FLuaJIT.git Inhibit CSE for table.concat(). --- diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c index 94d5702f..d8b6e884 100644 --- a/src/lj_opt_fold.c +++ b/src/lj_opt_fold.c @@ -602,6 +602,8 @@ LJFOLDF(bufstr_kfold_cse) ira->o == IR_CALLL || ira->o == IR_CARG); if (ira->o == IR_BUFHDR && !(ira->op2 & IRBUFHDR_APPEND)) return ref; /* CSE succeeded. */ + if (ira->o == IR_CALLL && ira->op2 == IRCALL_lj_buf_puttab) + break; ira = IR(ira->op1); irb = IR(irb->op1); }