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