RFR: 8291649: multiple tests failing with -Xcomp after JDK-8290034 [v2]
Kim Barrett
kbarrett at openjdk.org
Fri Aug 26 23:56:54 UTC 2022
On Fri, 26 Aug 2022 08:34:58 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
>> I took John's code and made various (I think) improvements:
>> https://github.com/openjdk/jdk/compare/master...kimbarrett:openjdk-jdk:reverse-bits?expand=1
>
> constexpr enables compiler to bypass usual in-lining constraints and inline the method body if all the arguments are constants at compile time under an assumption that IR pallet will be constant folded to a single value, in given context JIT compiler uses reverse_bit utility to constant fold Reverse IR node with constant inputs. Thus technically constexpr will not have much impact here.
This is being proposed as a general utility, available for use in other contexts. That makes constexpr support very much appropriate.
-------------
PR: https://git.openjdk.org/jdk/pull/9987
More information about the hotspot-dev
mailing list