http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60884
Bug ID: 60884 Summary: [SH] improve inlined strlen-like builtin functions Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: olegendo at gcc dot gnu.org Target: sh*-*-* This is a carry over from the proposed improvement to the strlen-like builtin functions by Christian. The idea is to unroll some of the loops that are expanded: http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01406.html As mentioned in http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01687.html maybe the unrolling should be done at -O3 and not at -O2, since it increases code size in some places, but does not seem to lead to significant speed improvements (~ 1% as measured by Christian).