Open re0312 opened 3 months ago
This happens because hashbrown::raw::RawTable<T,A>::find
is not inlined and therefore LLVM doesn't know that it is a pure function.
This happens because
hashbrown::raw::RawTable<T,A>::find
is not inlined and therefore LLVM doesn't know that it is a pure function.
Thanks for your reply. but I checked the code and it seems that RawTable::find
has been marked as inline, and there are no extra call in the assembly
Objectives
Why can't the compiler hoist branch out of the loop in the following code?
online assembly https://rust.godbolt.org/z/vr3WGsfhP