https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122036
Witold Baryluk <witold.baryluk+gcc at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|missed-optimization |
--- Comment #2 from Witold Baryluk <witold.baryluk+gcc at gmail dot com> ---
One more thing:
I noticed that changing the outer aggregate from a template to a non-template,
i.e. `final class HashMap` or `struct HashMap`, instead of using `struct
HashMap(K, V)` and then forcing instantiation, the `Compare` method of inner
static struct is properly inlined.
```
"example.HashMap.Slot* example.HashMap.GetWithHash(ulong)":
xor edx, edx
cmp rsi, QWORD PTR [rdi+16]
lea rax, [rdi+16]
cmovne rax, rdx
ret
```