https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78717
--- Comment #3 from AK <hiraditya at msn dot com> --- Even with a high inline limit, string::find didn't inline. g++-11.0.2 -O3 -finline-limit=100000 -S -o a.s s.cpp cat a.s ``` _Z3fooRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_i: .LFB1240: .cfi_startproc endbr64 pushq %rbx .cfi_def_cfa_offset 16 .cfi_offset 3, -16 movq 8(%rsi), %rcx movslq %edx, %rbx xorl %edx, %edx movq (%rsi), %rsi call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm@PLT cmpq %rax, %rbx popq %rbx .cfi_def_cfa_offset 8 sete %al movzbl %al, %eax ret ```