Integrated: 8346993: C2 SuperWord: refactor to make more vector nodes available in VectorNode::make

Emanuel Peter epeter at openjdk.org
Tue Jan 7 06:18:46 UTC 2025


On Fri, 3 Jan 2025 15:44:02 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> Extracted from cost-model code https://github.com/openjdk/jdk/pull/20964.
> 
> Currently, some nodes are only generated in their dedicated methods:
> - VectorNode::shift_count
>   - LShiftCntVNode
>   - RShiftCntVNode
> - VectorCastNode::make
>   - Vector(U)Cast...
> - VectorBlendNode has no corresponding "factory" method.
> 
> The goal is to have all available under VectorNode::make, so that they can be generated simply with the vector opcode. This is helpful for the plans with the cost-model, where the VTransform nodes will only carry the vector-opc, and I need to generate vectors for these vector-opc.

This pull request has now been integrated.

Changeset: 08debd33
Author:    Emanuel Peter <epeter at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/08debd335e9160d20b87e06a2e83ddedd5f473b8
Stats:     48 lines in 2 files changed: 22 ins; 15 del; 11 mod

8346993: C2 SuperWord: refactor to make more vector nodes available in VectorNode::make

Reviewed-by: chagedorn, kvn

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

PR: https://git.openjdk.org/jdk/pull/22917


More information about the hotspot-compiler-dev mailing list