mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Add a few VNInfo data structure checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b37a64a726
commit
014b8631c0
@ -529,6 +529,7 @@ void LiveInterval::MergeValueInAsValue(
|
||||
SmallVector<VNInfo*, 4> ReplacedValNos;
|
||||
iterator IP = begin();
|
||||
for (const_iterator I = RHS.begin(), E = RHS.end(); I != E; ++I) {
|
||||
assert(I->valno == RHS.getValNumInfo(I->valno->id) && "Bad VNInfo");
|
||||
if (I->valno != RHSValNo)
|
||||
continue;
|
||||
SlotIndex Start = I->start, End = I->end;
|
||||
@ -823,8 +824,10 @@ void LiveInterval::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const {
|
||||
else {
|
||||
OS << " = ";
|
||||
for (LiveInterval::Ranges::const_iterator I = ranges.begin(),
|
||||
E = ranges.end(); I != E; ++I)
|
||||
OS << *I;
|
||||
E = ranges.end(); I != E; ++I) {
|
||||
OS << *I;
|
||||
assert(I->valno == getValNumInfo(I->valno->id) && "Bad VNInfo");
|
||||
}
|
||||
}
|
||||
|
||||
// Print value number info.
|
||||
|
Loading…
Reference in New Issue
Block a user