[llvm-bugs] [Bug 38692] New: [LoopIdiomRecognition] Add support for recognizing and replacing strlen

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 24 11:10:52 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38692

            Bug ID: 38692
           Summary: [LoopIdiomRecognition] Add support for recognizing and
                    replacing strlen
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: olivierli at google.com
                CC: llvm-bugs at lists.llvm.org

LoopIdiomRecognize should recognize code that replicates the behavior of strlen
and replace it with a call to the function instead.

This kind of behavior is already present for memcpy within the same class.

This is already marked as a TODO in the code. :
https://github.com/llvm-mirror/llvm/blob/release_70/lib/Transforms/Scalar/LoopIdiomRecognize.cpp#L25

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180824/039d7c64/attachment.html>


More information about the llvm-bugs mailing list