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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs