No need to add liveness that's already there.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 10 Nov 2010 23:56:00 +0000 (23:56 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 10 Nov 2010 23:56:00 +0000 (23:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118742 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SplitKit.cpp

index 351cb0fae1faf0b94ea6268fc7df7536cfcca005..ed2725eed9c9ce07521fd82b5c1ff1421e74a23b 100644 (file)
@@ -764,10 +764,7 @@ void SplitEditor::enterIntvAtEnd(MachineBasicBlock &MBB) {
   }
   DEBUG(dbgs() << ": valno " << ParentVNI->id);
   truncatedValues.insert(ParentVNI);
-  VNInfo *VNI = defFromParent(openli_, ParentVNI, End, MBB,
-                              MBB.getFirstTerminator());
-  // Make sure openli is live out of MBB.
-  openli_.getLI()->addRange(LiveRange(VNI->def, End.getNextSlot(), VNI));
+  defFromParent(openli_, ParentVNI, End, MBB, MBB.getFirstTerminator());
   DEBUG(dbgs() << ": " << *openli_.getLI() << '\n');
 }