Use new MachineInstr mayLoadOrStore() API. NFC.
llvm-svn: 238044
This commit is contained in:
parent
8994fedc2b
commit
67336305f5
|
@ -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()) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue