-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Description
fn test(x: f32) -> f32 {
x.max(0.)
}compiles to (with optimizations):
jmp fmaxf@PLTbut 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.
hanna-kruppe and Dushistov
Metadata
Metadata
Assignees
Labels
No labels