Closed
Description
fn test(x: f32) -> f32 {
x.max(0.)
}
compiles to (with optimizations):
jmp fmaxf@PLT
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.
Metadata
Metadata
Assignees
Labels
No labels