RFR: 8341696: C2: Non-fluid StringBuilder pattern bails out in OptoStringConcat [v7]
Vladimir Kozlov
kvn at openjdk.org
Fri Jan 17 16:49:40 UTC 2025
On Fri, 17 Jan 2025 08:33:06 GMT, Theo Weidmann <tweidmann at openjdk.org> wrote:
>> Extends stringopts to also recognize non-fluid uses of StringBuilder and optimize them the same way.
>>
>> For example, this basic case was not optimized before and is optimized with this PR:
>>
>>
>> StringBuilder sb = new StringBuilder();
>> sb.append("a");
>> sb.append(a);
>> return sb.toString();
>
> Theo Weidmann has updated the pull request incrementally with one additional commit since the last revision:
>
> Cosmetic improvements
Good
-------------
Marked as reviewed by kvn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22537#pullrequestreview-2559484526
More information about the hotspot-compiler-dev
mailing list