[llvm] r237965 - Use new MachineInstr mayLoadOrStore() API.
Chad Rosier
mcrosier at codeaurora.org
Thu May 21 14:59:57 PDT 2015
Author: mcrosier
Date: Thu May 21 16:59:57 2015
New Revision: 237965
URL: http://llvm.org/viewvc/llvm-project?rev=237965&view=rev
Log:
Use new MachineInstr mayLoadOrStore() API.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64A53Fix835769.cpp
llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64A53Fix835769.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64A53Fix835769.cpp?rev=237965&r1=237964&r2=237965&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64A53Fix835769.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64A53Fix835769.cpp Thu May 21 16:59:57 2015
@@ -48,7 +48,7 @@ static bool isFirstInstructionInSequence
case AArch64::PRFUMi:
return true;
default:
- return (MI->mayLoad() || MI->mayStore());
+ return MI->mayLoadOrStore();
}
}
Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=237965&r1=237964&r2=237965&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Thu May 21 16:59:57 2015
@@ -617,10 +617,8 @@ AArch64InstrInfo::areMemAccessesTriviall
int OffsetA = 0, OffsetB = 0;
int WidthA = 0, WidthB = 0;
- assert(MIa && (MIa->mayLoad() || MIa->mayStore()) &&
- "MIa must be a store or a load");
- assert(MIb && (MIb->mayLoad() || MIb->mayStore()) &&
- "MIb must be a store or a load");
+ assert(MIa && MIa->mayLoadOrStore() && "MIa must be a load or store.");
+ assert(MIb && MIb->mayLoadOrStore() && "MIb must be a load or store.");
if (MIa->hasUnmodeledSideEffects() || MIb->hasUnmodeledSideEffects() ||
MIa->hasOrderedMemoryRef() || MIb->hasOrderedMemoryRef())
More information about the llvm-commits
mailing list