mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Completely eliminate VNInfo flags.
The 'unused' state of a value number can be represented as an invalid def SlotIndex. This also exposed code that shouldn't have been looking at unused value VNInfos. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -160,7 +160,7 @@ void LiveInterval::markValNoForDeletion(VNInfo *ValNo) {
|
||||
valnos.pop_back();
|
||||
} while (!valnos.empty() && valnos.back()->isUnused());
|
||||
} else {
|
||||
ValNo->setIsUnused(true);
|
||||
ValNo->markUnused();
|
||||
}
|
||||
}
|
||||
|
||||
@ -667,9 +667,6 @@ VNInfo* LiveInterval::MergeValueNumberInto(VNInfo *V1, VNInfo *V2) {
|
||||
}
|
||||
}
|
||||
|
||||
// Merge the relevant flags.
|
||||
V2->mergeFlags(V1);
|
||||
|
||||
// Now that V1 is dead, remove it.
|
||||
markValNoForDeletion(V1);
|
||||
|
||||
|
Reference in New Issue
Block a user