[llvm] r263965 - [AArch64] Add a helpful assert. NFC.
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 21 11:04:11 PDT 2016
Author: mcrosier
Date: Mon Mar 21 13:04:10 2016
New Revision: 263965
URL: http://llvm.org/viewvc/llvm-project?rev=263965&view=rev
Log:
[AArch64] Add a helpful assert. NFC.
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=263965&r1=263964&r2=263965&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Mon Mar 21 13:04:10 2016
@@ -1402,6 +1402,7 @@ bool AArch64InstrInfo::getMemOpBaseRegIm
bool AArch64InstrInfo::getMemOpBaseRegImmOfsWidth(
MachineInstr *LdSt, unsigned &BaseReg, int64_t &Offset, unsigned &Width,
const TargetRegisterInfo *TRI) const {
+ assert(LdSt->mayLoadOrStore() && "Expected a memory operation.");
// Handle only loads/stores with base register followed by immediate offset.
if (LdSt->getNumOperands() != 3)
return false;
More information about the llvm-commits
mailing list