From: Jakob Stoklund Olesen Date: Wed, 10 Nov 2010 23:56:00 +0000 (+0000) Subject: No need to add liveness that's already there. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b5f327b30f048b989c6f08d3bf84568d541b7644;p=oota-llvm.git No need to add liveness that's already there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118742 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 351cb0fae1f..ed2725eed9c 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -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'); }