RFR: 8374043: C2: assert(_base >= VectorMask && _base <= VectorZ) failed: Not a Vector [v2]
Xiaohong Gong
xgong at openjdk.org
Wed Jan 21 08:56:20 UTC 2026
On Wed, 21 Jan 2026 01:38:50 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:
>> I'd suggest to shape it as follows:
>>
>> Node* GraphKit::unbox_vector(Node* v, const TypeInstPtr* vbox_type, BasicType elem_bt, int num_elem) {
>> ...
>> Node* unbox = gvn().transform(new VectorUnboxNode(C, vt, v, merged_memory()));
>> if (!gvn().type(unbox)->isa_vect()) {
>> assert(gvn().type(unbox) == Type::TOP, "sanity");
>> return nullptr; // not a vector
>> }
>> return unbox;
>> }
>
> Sounds reasonable. I will fix it with next commit. Thanks for your suggestion!
Hi, I just updated a commit to check the result type of vector unbox in latest commit. Please help take another look. Thanks a lot!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29057#discussion_r2711553611
More information about the hotspot-compiler-dev
mailing list