RFR: 8349138: Optimize Math.copySign API for Intel e-core targets [v2]
Quan Anh Mai
qamai at openjdk.org
Thu Feb 13 11:04:10 UTC 2025
On Wed, 12 Feb 2025 12:07:16 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
> Also currently, logical And mask is a long value, in case we opt-in for new AndF/D node creation, to preserve the IR semantics we would also need to perform an integral to floating point constant conversion, this will incur additional memory load penalty since floating-point constants are emitted into the constant table before native method body.
That means we can improve the generation of floating-point constants.
The reason I object this approach is that it is short-sighted. It's not like we cannot generate similar machine code with the more general approach. Furthermore, after we do `AndF` transformations, this patch is redundant and can be removed entirely.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23386#issuecomment-2656240490
More information about the hotspot-compiler-dev
mailing list