Integrated: 8335006: C2 SuperWord: add JMH benchmark VectorLoadToStoreForwarding.java
Emanuel Peter
epeter at openjdk.org
Wed Jun 26 14:15:18 UTC 2024
On Tue, 25 Jun 2024 12:56:16 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
> I'm committing the benchmark mentioned in my blog article:
> https://eme64.github.io/blog/2024/06/24/Auto-Vectorization-and-Store-to-Load-Forwarding.html
>
> These are the numbers I got on my machine. Read the blog for a full analysis.
> 
>
> **Quick summary:**
> We see that vectorization is only beneficial for `OFFSET = 0, 1, 2, 4, 8, 16`, at least with the current SuperWord implementation. The regression for `OFFSET = 3 `is especially stark.
>
> The effect that explains the slowdown of vectorization for the other cases is failed store-to-load-forwarding.
>
> I ran it like this on my machine:
> `make test TEST="micro:vm.compiler.VectorLoadToStoreForwarding" CONF=linux-x64`
This pull request has now been integrated.
Changeset: 8374d165
Author: Emanuel Peter <epeter at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/8374d16504503c7441346c99045736b7ac72233f
Stats: 212 lines in 1 file changed: 212 ins; 0 del; 0 mod
8335006: C2 SuperWord: add JMH benchmark VectorLoadToStoreForwarding.java
Reviewed-by: shade, kvn, sviswanathan
-------------
PR: https://git.openjdk.org/jdk/pull/19880
More information about the hotspot-compiler-dev
mailing list