matches disappear from the output in this godbolt?
Does Rust/LLVM deduplicate functions?
Or does it treat this as some sort of trivial map that will always be inlined (in the case of
If I stick a
matches it will reappear (and is indeed identical to
LLVM does appear to have a
If you want to disable this behavior (e.g. on godbolt for showing generated asm), you can use
-Cmerge-functions=disabled. (At this point I habitually include it when I set up a godbolt experiment.)
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.