Lines Matching refs:Save
107 MachineBasicBlock *Save; member in __anone305433f0111::ShrinkWrap
164 Save = nullptr; in init()
181 bool ArePointsInteresting() const { return Save != Entry && Save && Restore; } in ArePointsInteresting()
275 if (!Save) in updateSaveRestorePoints()
276 Save = &MBB; in updateSaveRestorePoints()
278 Save = MDT->findNearestCommonDominator(Save, &MBB); in updateSaveRestorePoints()
280 if (!Save) { in updateSaveRestorePoints()
322 while (Save && Restore && in updateSaveRestorePoints()
323 (!(SaveDominatesRestore = MDT->dominates(Save, Restore)) || in updateSaveRestorePoints()
324 !(RestorePostDominatesSave = MPDT->dominates(Restore, Save)) || in updateSaveRestorePoints()
342 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
345 Save = MDT->findNearestCommonDominator(Save, Restore); in updateSaveRestorePoints()
350 Restore = MPDT->findNearestCommonDominator(Restore, Save); in updateSaveRestorePoints()
353 if (Save && Restore && in updateSaveRestorePoints()
354 (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
355 if (MLI->getLoopDepth(Save) > MLI->getLoopDepth(Restore)) { in updateSaveRestorePoints()
358 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in updateSaveRestorePoints()
359 if (!Save) in updateSaveRestorePoints()
476 assert(!Save && !Restore && "We miss a shrink-wrap opportunity?!"); in runOnMachineFunction()
487 << Save->getNumber() << ' ' << Save->getName() << ' ' in runOnMachineFunction()
488 << MBFI->getBlockFreq(Save).getFrequency() << "\nRestore: " in runOnMachineFunction()
493 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction()
495 ((TargetCanUseSaveAsPrologue = TFI->canUseAsPrologue(*Save)) && in runOnMachineFunction()
501 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in runOnMachineFunction()
502 if (!Save) in runOnMachineFunction()
504 NewBB = Save; in runOnMachineFunction()
513 } while (Save && Restore); in runOnMachineFunction()
520 DEBUG(dbgs() << "Final shrink wrap candidates:\nSave: " << Save->getNumber() in runOnMachineFunction()
521 << ' ' << Save->getName() << "\nRestore: " in runOnMachineFunction()
525 MFI->setSavePoint(Save); in runOnMachineFunction()