RFR: 8287925: AArch64: intrinsics for compareUnsigned method in Integer and Long
Hao Sun
haosun at openjdk.org
Tue Nov 29 10:04:27 UTC 2022
On Mon, 28 Nov 2022 17:42:24 GMT, Andrew Haley <aph at openjdk.org> wrote:
> I've been trying for an hour or so to write a benchmark that is actually improved by this patch. I have been unable to do so. Part of the problem is that using `cmp; cset; cneg` doesn't take advantage of branch prediction. And more often than not, the result of a comparison is predictable. Also, the code isn't necessarily shorter either. I do not believe this patch should be committed unless someone manages to write a benchmark that demonstrates some advantage.
Thanks for your insightful comment. I'm doing some investigation.
-------------
PR: https://git.openjdk.org/jdk/pull/11383
More information about the hotspot-compiler-dev
mailing list