commit | 4904d5d65de32237790e5370bd076a9bccc22aa1 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Fri Oct 02 13:52:00 2020 +0000 |
committer | Vladimir Marko <vmarko@google.com> | Mon Oct 05 08:28:08 2020 +0000 |
tree | f1a6e6126200d40ba10f3411c1c0bb51f826af1b | |
parent | 463255b4f1fcc8c34856a6b0780cf5ef238941c2 [diff] |
Optimize JNI:GetStringRegion() for compressed strings. Looking at the disassembly, it seems clang++ was unable to optimize this properly, probably due to possible aliasing, despite inlining the String::CharAt() and seeing all the String::IsCompressed() expressions. Explicitly use the fact that the string is compressed to optimize the function and similar patterns in JNI. Test: m test-art-host-gtest Bug: 169674485 Change-Id: I35dd2540a1e79611a65d2d84f2a557c826120409