RFR: 8375498: [VectorAPI] Dump primary vector IR details with -XX:+TraceNewVectors
Emanuel Peter
epeter at openjdk.org
Wed Jan 21 08:05:30 UTC 2026
On Fri, 16 Jan 2026 08:27:54 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
> Patch to add support for dumping primary vector IR created by various VectorAPI inline expanders.
> Currently auto-vectorization prints the newly create vector IR with -XX:+TraceNewVectors, similar message is
> now emitted for VectorAPI.
>
>
> TraceNewVectors [AutoVectorization]: 1397 AddVI === _ 1395 1396 [[ ]] #vectorx<I,4>
>
> TraceNewVectors [VectorAPI]: 1591 AddVI === _ 1545 1569 [[ ]] #vectory<I,8> !jvms: IntVector::lanewiseTemplate @ bci:154 (line 798) Int256Vector::lanewise @ bci:3 (line 278) Int256Vector::lanewise @ bci:3 (line 43) IntVector::add @ bci:5 (line 1380) AddTestI::workload @ bci:34 (line 18)
>
>
> Thanks,
> Jatin
@jatin-bhateja Nice, thanks for working on this! I've been missing this feature for a while :)
Question: how did you verify that you cover all cases? I think some are missing, I found some just by scrolling down in the file a bit:
https://github.com/openjdk/jdk/pull/29265/files#diff-33d0866101d899687e04303fb2232574f2cb796ce060528a243ebdc9903b01b1R3012-R3018
Could we have some way to verify that all vector nodes are traced in some way? It is just so easy to forget some. We can also file a separate RFE for that.
I'll still approve it because it already is a step in the right direction :)
-------------
Marked as reviewed by epeter (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29265#pullrequestreview-3685824145
More information about the hotspot-compiler-dev
mailing list