diff options
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 84ae3badc4..f4b2a9b817 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -401,7 +401,7 @@ void LiveIntervals::joinIntervals() assert(MRegisterInfo::isPhysicalRegister(intA->reg) && MRegisterInfo::isVirtualRegister(intB->reg) && "A must be physical and B must be virtual"); - assert(intA->reg != intB->reg); + if (!intA->overlaps(*intB) && !overlapsAliases(*intA, *intB)) { intA->join(*intB); |