mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Skip unused registers when verifying LiveIntervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c44c245d0c
commit
893ab5d701
@ -884,6 +884,11 @@ void MachineVerifier::verifyLiveIntervals() {
|
||||
for (LiveIntervals::const_iterator LVI = LiveInts->begin(),
|
||||
LVE = LiveInts->end(); LVI != LVE; ++LVI) {
|
||||
const LiveInterval &LI = *LVI->second;
|
||||
|
||||
// Spilling and splitting may leave unused registers around. Skip them.
|
||||
if (MRI->use_empty(LI.reg))
|
||||
continue;
|
||||
|
||||
assert(LVI->first == LI.reg && "Invalid reg to interval mapping");
|
||||
|
||||
for (LiveInterval::const_vni_iterator I = LI.vni_begin(), E = LI.vni_end();
|
||||
|
Loading…
x
Reference in New Issue
Block a user