[llvm-commits] [llvm] r117771 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Chris Lattner
sabre at nondot.org
Fri Oct 29 21:35:59 PDT 2010
Author: lattner
Date: Fri Oct 29 23:35:59 2010
New Revision: 117771
URL: http://llvm.org/viewvc/llvm-project?rev=117771&view=rev
Log:
simplify this code.
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=117771&r1=117770&r2=117771&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Fri Oct 29 23:35:59 2010
@@ -744,15 +744,11 @@
.Case("al", ARMCC::AL)
.Default(~0U);
- if (CC != ~0U) {
- if (CC == ARMCC::LS &&
- (Head.compare("vmls") == 0 || Head.compare("vnmls") == 0)) {
- CC = ARMCC::AL;
- } else {
- Head = Head.slice(0, Head.size() - 2);
- }
- } else {
+ if (CC == ~0U ||
+ (CC == ARMCC::LS && (Head == "vmls" || Head == "vnmls"))) {
CC = ARMCC::AL;
+ } else {
+ Head = Head.slice(0, Head.size() - 2);
}
Operands.push_back(ARMOperand::CreateToken(Head, NameLoc));
More information about the llvm-commits
mailing list