mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Calculate dead instructions when a live interval is created.
This gets us closer to being able to remove LiveVariables entirely which is where dead instructions are currently tagged as such. Reviewed by Jakob Olesen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210132 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -155,6 +155,17 @@ namespace llvm {
|
||||
bool shrinkToUses(LiveInterval *li,
|
||||
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
|
||||
/// 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.
|
||||
|
Reference in New Issue
Block a user