[llvm] r214528 - Add missing breaks to AArch64InstrInfo::isGPRCopy
Renato Golin
renato.golin at linaro.org
Fri Aug 1 10:27:31 PDT 2014
Author: rengolin
Date: Fri Aug 1 12:27:31 2014
New Revision: 214528
URL: http://llvm.org/viewvc/llvm-project?rev=214528&view=rev
Log:
Add missing breaks to AArch64InstrInfo::isGPRCopy
Modified:
llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=214528&r1=214527&r2=214528&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Fri Aug 1 12:27:31 2014
@@ -1058,12 +1058,14 @@ bool AArch64InstrInfo::isGPRCopy(const M
MI->getOperand(3).getImm() == 0 && "invalid ORRrs operands");
return true;
}
+ break;
case AArch64::ADDXri: // add Xd, Xn, #0 (LSL #0)
if (MI->getOperand(2).getImm() == 0) {
assert(MI->getDesc().getNumOperands() == 4 &&
MI->getOperand(3).getImm() == 0 && "invalid ADDXri operands");
return true;
}
+ break;
}
return false;
}
@@ -1086,6 +1088,7 @@ bool AArch64InstrInfo::isFPRCopy(const M
"invalid ORRv16i8 operands");
return true;
}
+ break;
}
return false;
}
More information about the llvm-commits
mailing list