Use new MachineInstr mayLoadOrStore() API. NFC.
authorChad Rosier <mcrosier@codeaurora.org>
Fri, 22 May 2015 20:07:34 +0000 (20:07 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Fri, 22 May 2015 20:07:34 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238044 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMHazardRecognizer.cpp
lib/Target/ARM/Thumb2SizeReduction.cpp

index a84603bf8fdba61abc64236ae1d9931d42e9bc48..0157c0a35286d65ec206d6c61d4c1392c722c4d3 100644 (file)
@@ -51,8 +51,7 @@ ARMHazardRecognizer::getHazardType(SUnit *SU, int Stalls) {
       // Skip over one non-VFP / NEON instruction.
       if (!LastMI->isBarrier() &&
           // On A9, AGU and NEON/FPU are muxed.
-          !(TII.getSubtarget().isLikeA9() &&
-            (LastMI->mayLoad() || LastMI->mayStore())) &&
+          !(TII.getSubtarget().isLikeA9() && LastMI->mayLoadOrStore()) &&
           (LastMCID.TSFlags & ARMII::DomainMask) == ARMII::DomainGeneral) {
         MachineBasicBlock::iterator I = LastMI;
         if (I != LastMI->getParent()->begin()) {
index b5f195bd4098e7c184a57efd9d995028a233ea2a..0ab1ff906c9aae04375bed60ce0dbe257ba7ca39 100644 (file)
@@ -569,7 +569,7 @@ Thumb2SizeReduce::ReduceSpecial(MachineBasicBlock &MBB, MachineInstr *MI,
   if (Entry.LowRegs1 && !VerifyLowRegs(MI))
     return false;
 
-  if (MI->mayLoad() || MI->mayStore())
+  if (MI->mayLoadOrStore())
     return ReduceLoadStore(MBB, MI, Entry);
 
   switch (Opc) {