[llvm-bugs] [Bug 27912] New: trunk/llvm/lib/Target/ARM/ARMAsmPrinter.cpp:647: possible poor find ?

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 27 08:50:53 PDT 2016


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

            Bug ID: 27912
           Summary: trunk/llvm/lib/Target/ARM/ARMAsmPrinter.cpp:647:
                    possible poor find ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

trunk/llvm/lib/Target/ARM/ARMAsmPrinter.cpp:647]: (performance) Inefficient
usage of string::find() in condition; string::compare() would be faster.

Source code is

  if (CPUString.find("generic") != 0) { //CPUString doesn't start with
"generic"

-- 
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/20160527/fba933a4/attachment.html>


More information about the llvm-bugs mailing list