RFR: 8341696: C2: Non-fluid StringBuilder pattern bails out in OptoStringConcat [v4]
theoweidmannoracle
duke at openjdk.org
Thu Dec 12 09:55:24 UTC 2024
> 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();
theoweidmannoracle has updated the pull request incrementally with one additional commit since the last revision:
Fix test name
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/22537/files
- new: https://git.openjdk.org/jdk/pull/22537/files/69127e10..b0a1b226
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=22537&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=22537&range=02-03
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/22537.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22537/head:pull/22537
PR: https://git.openjdk.org/jdk/pull/22537
More information about the hotspot-compiler-dev
mailing list