mbutrovich commented on PR #12422: URL: https://github.com/apache/arrow-rs/pull/12422#issuecomment-7112444312
Thanks for the review, @comphead! > `cast_time64_to_time32` doesn't divide by a constant, so the description's claim about it doesn't hold, at least on aarch64-apple-darwin. You're right. In the `cast_kernels` binary built with thin LTO, all eight `unary_opt` and `try_unary` loops kept `sdiv`, and the microsecond and nanosecond copies were merged. My check had looked at a build without LTO, where those loops were inlined into the wrappers with the constant folded in. With the const parameter, all eight loops use `smulh` on aarch64 and `imul` on x86_64 with no divide, in the same thin LTO build, so the PR now covers all three sites in #12173. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
