This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/78809] Inline strcmp with small constant strings
- From: "qing.zhao at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Jan 2018 19:45:20 +0000
- Subject: [Bug middle-end/78809] Inline strcmp with small constant strings
- Auto-submitted: auto-generated
- References: <bug-78809-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809
--- Comment #24 from Qing Zhao <qing.zhao at oracle dot com> ---
From the above, we can see:
even with n is as big as 20, inlined version is much faster than the
non-inlined version, both on aarch64 (no hardware string compare insn provided)
and X86 (hardware string compare insn provided)
So, it's reasonable to do the inline as much as possible.