diff options
| author | Andrew Trick <atrick@apple.com> | 2013-07-30 19:59:08 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2013-07-30 19:59:08 +0000 |
| commit | d9761776bcced01f42a0042d7c7a3b8981b3f383 (patch) | |
| tree | ab257fdba8dbc71889fffd781bdc44e1b0915883 /llvm/lib | |
| parent | 4b388c9e165f4167fdf0a6aef21afcb333d7b6a2 (diff) | |
| download | bcm5719-llvm-d9761776bcced01f42a0042d7c7a3b8981b3f383.tar.gz bcm5719-llvm-d9761776bcced01f42a0042d7c7a3b8981b3f383.zip | |
MI Sched fix: assert "Disconnected LRG within the scheduling region."
llvm-svn: 187435
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 4e3cc3c5d4f..b088d1ad17c 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -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() && |

