[Bug middle-end/84029] Partially inline strcmp
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 25 08:08:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84029
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-01-25
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
If we know the length of either argument and the other argument is properly
aligned we can do a 2, 4 or 8 byte compare upfront. Not sure how often that
happens (esp. with regard to knowing alignment to make sure there's no
page fault).
Note this optimization has a code-size impact and thus should be done only
for hot code regions, eventually based on a value-profile?
More information about the Gcc-bugs
mailing list