fn test(x: f32) -> f32 {
x.max(0.)
}
compiles to (with optimizations):
but I'd expect it to be inlined and generate code that is exactly the same as if x > 0. {x} else {0.}, which compiles to maxss inline. I've checked that even LTO doesn't inline the calls.
compiles to (with optimizations):
but I'd expect it to be inlined and generate code that is exactly the same as
if x > 0. {x} else {0.}, which compiles tomaxssinline. I've checked that even LTO doesn't inline the calls.