[llvm-bugs] [Bug 28274] New: llvm/lib/Target/Sparc/LeonPasses.cpp: 4 * bad call to find ?
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 23 00:13:06 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28274
Bug ID: 28274
Summary: llvm/lib/Target/Sparc/LeonPasses.cpp: 4 * bad call to
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/Sparc/LeonPasses.cpp:175]: (performance) Inefficient
usage of string::find() in condition; string::compare() would be faster.
Source code is
if (AsmString.find(FMULSOpCoode) == 0) { // this is an inline FSMULD
instruction
Some duplicates:
trunk/llvm/lib/Target/Sparc/LeonPasses.cpp:287]: (performance) Inefficient
usage of string::find() in condition; string::compare() would be faster.
[trunk/llvm/lib/Target/Sparc/LeonPasses.cpp:384]: (performance) Inefficient
usage of string::find() in condition; string::compare() would be faster.
[trunk/llvm/lib/Target/Sparc/LeonPasses.cpp:388]: (performance) Inefficient
usage of string::find() in condition; string::compare() would be faster.
--
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/20160623/d9439bc2/attachment.html>
More information about the llvm-bugs
mailing list