[llvm-bugs] [Bug 27904] New: trunk/llvm/lib/Target/Sparc/LeonPasses.cpp:68: possible poor find ?
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 27 01:22:13 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27904
Bug ID: 27904
Summary: trunk/llvm/lib/Target/Sparc/LeonPasses.cpp:68:
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/Sparc/LeonPasses.cpp:68]: (performance) Inefficient usage
of string::find() in condition; string::compare() would be faster.
Source code is
if (AsmString.find(LDOpCoode) == 0) { // an inline ld or ldf instruction
--
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/31b179e9/attachment.html>
More information about the llvm-bugs
mailing list