mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
Hide cpu name checking in ARMSubtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4c4768fb2
commit
44ee4714a8
@ -1080,7 +1080,7 @@ bool ARMLoadStoreOpt::FixInvalidRegPairOp(MachineBasicBlock &MBB,
|
||||
unsigned OddRegNum = TRI->getDwarfRegNum(OddReg, false);
|
||||
// ARM errata 602117: LDRD with base in list may result in incorrect base
|
||||
// register when interrupted or faulted.
|
||||
bool Errata602117 = EvenReg == BaseReg && STI->getCPUString() == "cortex-m3";
|
||||
bool Errata602117 = EvenReg == BaseReg && STI->isCortexM3();
|
||||
if (!Errata602117 &&
|
||||
((EvenRegNum & 1) == 0 && (EvenRegNum + 1) == OddRegNum))
|
||||
return false;
|
||||
|
@ -191,6 +191,7 @@ protected:
|
||||
|
||||
bool isCortexA8() const { return ARMProcFamily == CortexA8; }
|
||||
bool isCortexA9() const { return ARMProcFamily == CortexA9; }
|
||||
bool isCortexM3() const { return CPUString == "cortex-m3"; }
|
||||
|
||||
bool hasARMOps() const { return !NoARM; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user