mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
Remove unnecessary getTarget call now that the subtarget is cached
on the machine function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8bf2a84891
commit
c24df453b0
@ -116,7 +116,7 @@ public:
|
||||
MachineFunction &MF, LiveIntervals &lis, VirtRegMap *vrm,
|
||||
Delegate *delegate = nullptr)
|
||||
: Parent(parent), NewRegs(newRegs), MRI(MF.getRegInfo()), LIS(lis),
|
||||
VRM(vrm), TII(*MF.getTarget().getSubtargetImpl()->getInstrInfo()),
|
||||
VRM(vrm), TII(*MF.getSubtarget().getInstrInfo()),
|
||||
TheDelegate(delegate), FirstNew(newRegs.size()),
|
||||
ScannedRemattable(false) {
|
||||
MRI.setDelegate(this);
|
||||
|
@ -2518,7 +2518,7 @@ void AArch64InstrInfo::genAlternativeCodeSequence(
|
||||
MachineBasicBlock &MBB = *Root.getParent();
|
||||
MachineRegisterInfo &MRI = MBB.getParent()->getRegInfo();
|
||||
MachineFunction &MF = *MBB.getParent();
|
||||
const TargetInstrInfo *TII = MF.getTarget().getSubtargetImpl()->getInstrInfo();
|
||||
const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo();
|
||||
|
||||
MachineInstr *MUL;
|
||||
const TargetRegisterClass *RC;
|
||||
|
@ -443,10 +443,8 @@ bool X86RegisterInfo::canRealignStack(const MachineFunction &MF) const {
|
||||
bool X86RegisterInfo::needsStackRealignment(const MachineFunction &MF) const {
|
||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
const Function *F = MF.getFunction();
|
||||
unsigned StackAlign = MF.getTarget()
|
||||
.getSubtargetImpl()
|
||||
->getFrameLowering()
|
||||
->getStackAlignment();
|
||||
unsigned StackAlign =
|
||||
MF.getSubtarget().getFrameLowering()->getStackAlignment();
|
||||
bool requiresRealignment =
|
||||
((MFI->getMaxAlignment() > StackAlign) ||
|
||||
F->getAttributes().hasAttribute(AttributeSet::FunctionIndex,
|
||||
|
Loading…
Reference in New Issue
Block a user