mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
LiveIntervalAnalysis: Make computeDeadValues() private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -154,17 +154,6 @@ namespace llvm {
|
|||||||
bool shrinkToUses(LiveInterval *li,
|
bool shrinkToUses(LiveInterval *li,
|
||||||
SmallVectorImpl<MachineInstr*> *dead = nullptr);
|
SmallVectorImpl<MachineInstr*> *dead = nullptr);
|
||||||
|
|
||||||
/// \brief Walk the values in the given interval and compute which ones
|
|
||||||
/// are dead. Dead values are not deleted, however:
|
|
||||||
/// - Dead PHIDef values are marked as unused.
|
|
||||||
/// - New dead machine instructions are added to the dead vector.
|
|
||||||
/// - CanSeparate is set to true if the interval may have been separated
|
|
||||||
/// into multiple connected components.
|
|
||||||
void computeDeadValues(LiveInterval *li,
|
|
||||||
LiveRange &LR,
|
|
||||||
bool *CanSeparate,
|
|
||||||
SmallVectorImpl<MachineInstr*> *dead);
|
|
||||||
|
|
||||||
/// extendToIndices - Extend the live range of LI to reach all points in
|
/// extendToIndices - Extend the live range of LI to reach all points in
|
||||||
/// Indices. The points in the Indices array must be jointly dominated by
|
/// Indices. The points in the Indices array must be jointly dominated by
|
||||||
/// existing defs in LI. PHI-defs are added as needed to maintain SSA form.
|
/// existing defs in LI. PHI-defs are added as needed to maintain SSA form.
|
||||||
@@ -404,6 +393,15 @@ namespace llvm {
|
|||||||
/// Compute RegMaskSlots and RegMaskBits.
|
/// Compute RegMaskSlots and RegMaskBits.
|
||||||
void computeRegMasks();
|
void computeRegMasks();
|
||||||
|
|
||||||
|
/// \brief Walk the values in the given interval and compute which ones
|
||||||
|
/// are dead. Dead values are not deleted, however:
|
||||||
|
/// - Dead PHIDef values are marked as unused.
|
||||||
|
/// - New dead machine instructions are added to the dead vector.
|
||||||
|
/// - CanSeparate is set to true if the interval may have been separated
|
||||||
|
/// into multiple connected components.
|
||||||
|
void computeDeadValues(LiveInterval *li, LiveRange &LR, bool *CanSeparate,
|
||||||
|
SmallVectorImpl<MachineInstr*> *dead);
|
||||||
|
|
||||||
static LiveInterval* createInterval(unsigned Reg);
|
static LiveInterval* createInterval(unsigned Reg);
|
||||||
|
|
||||||
void printInstrs(raw_ostream &O) const;
|
void printInstrs(raw_ostream &O) const;
|
||||||
|
Reference in New Issue
Block a user