RFR: 8370666: VectorAPI: Add clear comments for vector relative code in c2 [v2]

Xiaohong Gong xgong at openjdk.org
Tue Jan 13 08:54:04 UTC 2026


On Mon, 12 Jan 2026 05:37:55 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

>> src/hotspot/share/opto/type.cpp line 2452:
>> 
>>> 2450: //   stored in a predicate/mask register.
>>> 2451: // - Returns a normal vector type (i.e. TypeVectA ~ TypeVectZ) otherwise, where
>>> 2452: //   the vector mask is stored in a vector register.
>> 
>> The first case is `PVectMask`, and the second `NVectMask`, right?
>
> Yes, correct.

Do you mean I'd better comment these names as well? If so, I will refine the comment with next commit. Thanks!

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29130#discussion_r2685444345


More information about the hotspot-compiler-dev mailing list