DwarfDebug: Emit dwo_id+dwo_name for DICompileUnits that provide a dwoId.
[oota-llvm.git] / lib / CodeGen / LiveInterval.cpp
index 246d21089e6c16f7241566d0ef3cb2f04bc4f3ac..3dc4113c6396854ca37afbac8f79b7c4b468584c 100644 (file)
@@ -839,7 +839,6 @@ static void determineMissingVNIs(const SlotIndexes &Indexes, LiveInterval &LI) {
     }
     // Merge with previous segment if it has the same VNI.
     if (PrevValNo == S.valno && OutIt->end == S.start) {
-      fprintf(stderr, "Adjancency fix\n");
       OutIt->end = S.end;
     } else {
       // Didn't merge. Move OutIt to next segment.
@@ -982,10 +981,8 @@ void LiveInterval::constructMainRangeFromSubranges(
         // number (if they come from different subranges, but happen to have
         // the same defining instruction). VNIFixup will fix those cases.
         if (!empty() && segments.back().end == Pos &&
-            segments.back().valno == VNI) {
-          fprintf(stderr, "Need Adjacency fixup\n");
+            segments.back().valno == VNI)
           NeedVNIFixup = true;
-        }
         CurrentSegment.start = Pos;
         CurrentSegment.valno = VNI;
         ConstructingSegment = true;
@@ -1113,6 +1110,8 @@ void LiveInterval::verify(const MachineRegisterInfo *MRI) const {
 
     // subrange mask should not contained in maximum lane mask for the vreg.
     assert((Mask & ~MaxMask) == 0);
+    // empty subranges must be removed.
+    assert(!SR.empty());
 
     SR.verify();
     // Main liverange should cover subrange.