Integrated: 8343068: C2: CastX2P Ideal transformation not always applied

Roland Westrelin roland at openjdk.org
Wed Nov 6 14:51:40 UTC 2024


On Fri, 25 Oct 2024 14:09:48 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> The transformation:
> 
> 
> (CastX2P (AddL base i)) -> (AddP (CastX2P base) i) 
> 
> 
> when i fits in an int is not always applied: when the type of `i` is
> narrowed so it fits in an int, the `CastX2P` is not enqueued for
> igvn. This can get in the way of vectorization as shown by test case
> `test2`.

This pull request has now been integrated.

Changeset: 57c3bb60
Author:    Roland Westrelin <roland at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/57c3bb6091f8ba0caced6f5ecf21dc998ffeee9f
Stats:     93 lines in 3 files changed: 93 ins; 0 del; 0 mod

8343068: C2: CastX2P Ideal transformation not always applied

Reviewed-by: kvn, thartmann

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

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


More information about the hotspot-compiler-dev mailing list