mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-19 10:15:00 +00:00
Use the subtarget reference that we already have
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253244 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a949077a9
commit
0929f1339a
@ -2568,8 +2568,7 @@ bool X86FrameLowering::canUseAsEpilogue(const MachineBasicBlock &MBB) const {
|
||||
// not taking a chance at messing with them.
|
||||
// I.e., unless this block is already an exit block, we can't use
|
||||
// it as an epilogue.
|
||||
if (MBB.getParent()->getSubtarget<X86Subtarget>().isTargetWin64() &&
|
||||
!MBB.succ_empty() && !MBB.isReturnBlock())
|
||||
if (STI.isTargetWin64() && !MBB.succ_empty() && !MBB.isReturnBlock())
|
||||
return false;
|
||||
|
||||
if (canUseLEAForSPInEpilogue(*MBB.getParent()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user