mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Accept instructions that read undefined values.
This is not supposed to happen, but I have seen the x86 rematter getting confused when rematerializing partial redefs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7cec179a64
commit
9ef931e71c
@ -761,7 +761,15 @@ bool LiveIntervals::shrinkToUses(LiveInterval *li,
|
|||||||
continue;
|
continue;
|
||||||
SlotIndex Idx = getInstructionIndex(UseMI).getUseIndex();
|
SlotIndex Idx = getInstructionIndex(UseMI).getUseIndex();
|
||||||
VNInfo *VNI = li->getVNInfoAt(Idx);
|
VNInfo *VNI = li->getVNInfoAt(Idx);
|
||||||
assert(VNI && "Live interval not live into reading instruction");
|
if (!VNI) {
|
||||||
|
// This shouldn't happen: readsVirtualRegister returns true, but there is
|
||||||
|
// no live value. It is likely caused by a target getting <undef> flags
|
||||||
|
// wrong.
|
||||||
|
DEBUG(dbgs() << Idx << '\t' << *UseMI
|
||||||
|
<< "Warning: Instr claims to read non-existent value in "
|
||||||
|
<< *li << '\n');
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (VNI->def == Idx) {
|
if (VNI->def == Idx) {
|
||||||
// Special case: An early-clobber tied operand reads and writes the
|
// Special case: An early-clobber tied operand reads and writes the
|
||||||
// register one slot early.
|
// register one slot early.
|
||||||
|
Loading…
Reference in New Issue
Block a user