mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
mi-sched: update PressureDiffs on-the-fly for liveness.
This removes all expensive pressure tracking logic from the scheduling critical path of node comparison. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -221,7 +221,9 @@ protected:
|
||||
|
||||
MachineBasicBlock::iterator LiveRegionEnd;
|
||||
|
||||
// Map each SU to its summary of pressure changes.
|
||||
// Map each SU to its summary of pressure changes. This array is updated for
|
||||
// liveness during bottom-up scheduling. Top-down scheduling may proceed but
|
||||
// has no affect on the pressure diffs.
|
||||
PressureDiffs SUPressureDiffs;
|
||||
|
||||
/// Register pressure in this region computed by initRegPressure.
|
||||
@ -376,6 +378,8 @@ protected:
|
||||
|
||||
void initRegPressure();
|
||||
|
||||
void updatePressureDiffs(ArrayRef<unsigned> LiveUses);
|
||||
|
||||
void updateScheduledPressure(const std::vector<unsigned> &NewMaxPressure);
|
||||
|
||||
bool checkSchedLimit();
|
||||
|
Reference in New Issue
Block a user