When MethodHandle is a compile-time constant and it is inlined in MethodHandle.invoke/invokeExact there's no need in MHI::checkCustomized call. It should be eliminated since it adds some overhead on fast path.

The fix is to add new intrinsic (MHI::isCompileConstant) and use it to prune MHI::checkCustomized logic when MethodHandle is a constant.

Testing: java/lang/invoke, nashorn, octane

Best regards,
Vladimir Ivanov
mlvm-dev mailing list

Reply via email to