mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Clean up and bug fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e089ae0b8
commit
a141cfe5b2
@ -147,19 +147,19 @@ namespace llvm {
|
||||
/// getInstForValNum - Return the machine instruction index that defines the
|
||||
/// specified value number.
|
||||
unsigned getInstForValNum(unsigned ValNo) const {
|
||||
//assert(ValNo < ValueNumberInfo.size());
|
||||
assert(ValNo < ValueNumberInfo.size());
|
||||
return ValueNumberInfo[ValNo].def;
|
||||
}
|
||||
|
||||
unsigned getSrcRegForValNum(unsigned ValNo) const {
|
||||
//assert(ValNo < ValueNumberInfo.size());
|
||||
assert(ValNo < ValueNumberInfo.size());
|
||||
return ValueNumberInfo[ValNo].reg;
|
||||
}
|
||||
|
||||
/// getKillsForValNum - Return the kill instruction indexes of the specified
|
||||
/// value number.
|
||||
SmallVector<unsigned, 4> getKillsForValNum(unsigned ValNo) const {
|
||||
//assert(ValNo < ValueNumberInfo.size());
|
||||
const SmallVector<unsigned, 4> &getKillsForValNum(unsigned ValNo) const {
|
||||
assert(ValNo < ValueNumberInfo.size());
|
||||
return ValueNumberInfo[ValNo].kills;
|
||||
}
|
||||
|
||||
@ -170,7 +170,7 @@ namespace llvm {
|
||||
}
|
||||
|
||||
VNInfo getValNumInfo(unsigned ValNo) const {
|
||||
//assert(ValNo < ValueNumberInfo.size());
|
||||
assert(ValNo < ValueNumberInfo.size());
|
||||
return ValueNumberInfo[ValNo];
|
||||
}
|
||||
|
||||
|
@ -300,7 +300,7 @@ void LiveInterval::join(LiveInterval &Other, int *LHSValNoAssignments,
|
||||
// we want to avoid the interval scan if not.
|
||||
bool MustMapCurValNos = false;
|
||||
for (unsigned i = 0, e = getNumValNums(); i != e; ++i) {
|
||||
//if (ValueNumberInfo[i].def == ~1U) continue; // tombstone value #
|
||||
if (ValueNumberInfo[i].def == ~1U) continue; // tombstone value #
|
||||
if (i != (unsigned)LHSValNoAssignments[i]) {
|
||||
MustMapCurValNos = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user