bf12f7eee0
We cannot be sure that we won't change behavior of these functions in some corner cases, so only perform this optimization if the API version specified by the user is not greater than the compiler's own stdlib version it was compiled against. This is the same as the similar code in the old backend in IntrinsicMethods.