mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Dead code elimination may separate the live interval into multiple connected components.
I have convinced myself that it can only happen when a phi value dies. When it happens, allocate new virtual registers for the components. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -160,7 +160,9 @@ namespace llvm {
|
||||
/// defs for new uses, and it doesn't remove dead defs.
|
||||
/// Dead PHIDef values are marked as unused.
|
||||
/// New dead machine instructions are added to the dead vector.
|
||||
void shrinkToUses(LiveInterval *li,
|
||||
/// Return true if the interval may have been separated into multiple
|
||||
/// connected components.
|
||||
bool shrinkToUses(LiveInterval *li,
|
||||
SmallVectorImpl<MachineInstr*> *dead = 0);
|
||||
|
||||
// Interval removal
|
||||
|
Reference in New Issue
Block a user