mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
MI Sched fix: assert "Disconnected LRG within the scheduling region."
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1017,6 +1017,12 @@ void CopyConstrain::constrainLocalCopy(SUnit *CopySU, ScheduleDAGMI *DAG) {
|
||||
GlobalSegment->start)) {
|
||||
return;
|
||||
}
|
||||
// If the prior global segment may be defined by the same two-address
|
||||
// instruction that also defines LocalLI, then can't make a hole here.
|
||||
if (SlotIndex::isSameInstr(llvm::prior(GlobalSegment)->start,
|
||||
LocalLI->beginIndex())) {
|
||||
return;
|
||||
}
|
||||
// If GlobalLI has a prior segment, it must be live into the EBB. Otherwise
|
||||
// it would be a disconnected component in the live range.
|
||||
assert(llvm::prior(GlobalSegment)->start < LocalLI->beginIndex() &&
|
||||
|
Reference in New Issue
Block a user