[Bug middle-end/106323] [Suboptimal] memcmp(s1, s2, n) == 0 expansion on AArch64 compare to llvm
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 17 20:37:16 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106323
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |104611
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note this could be even better as using cmp/ccmp on aarch64 than using eor/or
really.
See bug 104611 comment #1 for that.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104611
[Bug 104611] memcmp/strcmp/strncmp can be optimized when the result is tested
for [in]equality with 0 on aarch64
More information about the Gcc-bugs
mailing list