[Bug middle-end/78809] Inline strcmp with small constant strings

wilco at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 14 14:30:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809

--- Comment #2 from wilco at gcc dot gnu.org ---
(In reply to Richard Biener from comment #1)
> We may have dups of this.  And we now have inlining for strcmp/memcmp when
> the
> result is only compared against zero.

I don't see that happening with latest trunk (maybe patches are still
outstanding?), however if so then that code could be generalized to support any
strcmp.


More information about the Gcc-bugs mailing list