mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 18:42:36 +00:00
Use range-based for loops. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1fc660ff51
commit
cc2a78f316
@ -2308,15 +2308,13 @@ void X86FrameLowering::adjustForHiPEPrologue(
|
||||
if (MFI->hasCalls()) {
|
||||
unsigned MoreStackForCalls = 0;
|
||||
|
||||
for (MachineFunction::iterator MBBI = MF.begin(), MBBE = MF.end();
|
||||
MBBI != MBBE; ++MBBI)
|
||||
for (MachineBasicBlock::iterator MI = MBBI->begin(), ME = MBBI->end();
|
||||
MI != ME; ++MI) {
|
||||
if (!MI->isCall())
|
||||
for (auto &MBB : MF) {
|
||||
for (auto &MI : MBB) {
|
||||
if (!MI.isCall())
|
||||
continue;
|
||||
|
||||
// Get callee operand.
|
||||
const MachineOperand &MO = MI->getOperand(0);
|
||||
const MachineOperand &MO = MI.getOperand(0);
|
||||
|
||||
// Only take account of global function calls (no closures etc.).
|
||||
if (!MO.isGlobal())
|
||||
@ -2342,6 +2340,7 @@ void X86FrameLowering::adjustForHiPEPrologue(
|
||||
MoreStackForCalls = std::max(MoreStackForCalls,
|
||||
(HipeLeafWords - 1 - CalleeStkArity) * SlotSize);
|
||||
}
|
||||
}
|
||||
MaxStack += MoreStackForCalls;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user