mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Use new MachineInstr mayLoadOrStore() API. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1fd101c86d
commit
157fbac534
@ -51,8 +51,7 @@ ARMHazardRecognizer::getHazardType(SUnit *SU, int Stalls) {
|
|||||||
// Skip over one non-VFP / NEON instruction.
|
// Skip over one non-VFP / NEON instruction.
|
||||||
if (!LastMI->isBarrier() &&
|
if (!LastMI->isBarrier() &&
|
||||||
// On A9, AGU and NEON/FPU are muxed.
|
// On A9, AGU and NEON/FPU are muxed.
|
||||||
!(TII.getSubtarget().isLikeA9() &&
|
!(TII.getSubtarget().isLikeA9() && LastMI->mayLoadOrStore()) &&
|
||||||
(LastMI->mayLoad() || LastMI->mayStore())) &&
|
|
||||||
(LastMCID.TSFlags & ARMII::DomainMask) == ARMII::DomainGeneral) {
|
(LastMCID.TSFlags & ARMII::DomainMask) == ARMII::DomainGeneral) {
|
||||||
MachineBasicBlock::iterator I = LastMI;
|
MachineBasicBlock::iterator I = LastMI;
|
||||||
if (I != LastMI->getParent()->begin()) {
|
if (I != LastMI->getParent()->begin()) {
|
||||||
|
@ -569,7 +569,7 @@ Thumb2SizeReduce::ReduceSpecial(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||||||
if (Entry.LowRegs1 && !VerifyLowRegs(MI))
|
if (Entry.LowRegs1 && !VerifyLowRegs(MI))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (MI->mayLoad() || MI->mayStore())
|
if (MI->mayLoadOrStore())
|
||||||
return ReduceLoadStore(MBB, MI, Entry);
|
return ReduceLoadStore(MBB, MI, Entry);
|
||||||
|
|
||||||
switch (Opc) {
|
switch (Opc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user