JVM_IR don't use Intrinsics.stringPlus for 2-argument concatenation

This commit is contained in:
Dmitry Petrov
2021-09-30 16:42:46 +03:00
committed by TeamCityServer
parent 8a459821d0
commit 7e86f5dcd9
17 changed files with 194 additions and 26 deletions
@@ -33,19 +33,8 @@ fun box(): String {
// 1 IFGE
// 1 IFLE
// JVM_TEMPLATES
// -- no boxing but lots of StringBuilder calls
// 0 valueOf
// 0 Intrinsics.stringPlus
// 4 StringBuilder.<init>
// 8 StringBuilder.append
// 4 StringBuilder.toString
// JVM_IR_TEMPLATES
// -- perform boxing and call Intrinsics.stringPlus instead
// -- of having inlined string builder allocation, appends, and toString
// 4 valueOf
// 4 Intrinsics.stringPlus
// 0 StringBuilder.<init>
// 0 StringBuilder.append
// 0 StringBuilder.toString