[Bug target/105992] memcmp(p, q, 7) == 0 can be optimized better on x86

2022-06-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105992 --- Comment #3 from H.J. Lu --- (In reply to Hongtao.liu from comment #1) > I'm wondering would targetm.overlap_op_by_pieces_p helps here. The code is generated by targetm.overlap_op_by_pieces_p. It compares 4 byte at a time with branches.

[Bug target/105992] memcmp(p, q, 7) == 0 can be optimized better on x86

2022-06-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105992 --- Comment #2 from H.J. Lu --- (In reply to Hongtao.liu from comment #1) > I'm wondering would targetm.overlap_op_by_pieces_p helps here. It is related to PR 103798.

[Bug target/105992] memcmp(p, q, 7) == 0 can be optimized better on x86

2022-06-16 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105992 Hongtao.liu changed: What|Removed |Added CC||crazylht at gmail dot com,