[Bug tree-optimization/86203] duplicate non-constant call to strlen() not folded

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 18 19:06:00 GMT 2018


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=79547
             Blocks|                            |83819

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Intel ICC emits just one call to __intel_sse2_strlen.  Clang emits two calls
like GCC.

See also bug 79547 for a similar missed optimization (the bug was fixed in GCC
7).


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819
[Bug 83819] [meta-bug] missing strlen optimizations


More information about the Gcc-bugs mailing list