RFR: 8324433: Introduce a way to determine if an expression is evaluated as a constant by the Jit compiler
Aleksey Shipilev
shade at openjdk.org
Tue Jan 23 09:45:27 UTC 2024
On Tue, 23 Jan 2024 09:31:51 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
> Maybe I am ignorant but doesn't the definition of an intrinsics contain the signature of the method as well?
The definitions in `vmIntrinsics`, sure, they require full signature for `@IntrinsicCandidate` methods. It would yield some unfortunate duplication. But after that, we can map on the same `inline_isCompileConstant` intrinsic that just asks `arg(0)->is_Con()`, and it would not care about the type of the constant.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17527#issuecomment-1905667006
More information about the hotspot-compiler-dev
mailing list