Use getInterval() instead of getOrCreateInterval().
authorCameron Zwarich <zwarich@apple.com>
Thu, 21 Feb 2013 08:51:55 +0000 (08:51 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 21 Feb 2013 08:51:55 +0000 (08:51 +0000)
llvm-svn: 175731

llvm/lib/CodeGen/PHIElimination.cpp

index 61122fc..b84d9d3 100644 (file)
@@ -319,7 +319,7 @@ void PHIElimination::LowerPHINode(MachineBasicBlock &MBB,
                                     IncomingVNI));
     }
 
-    LiveInterval &DestLI = LIS->getOrCreateInterval(DestReg);
+    LiveInterval &DestLI = LIS->getInterval(DestReg);
     if (NewInstr->getOperand(0).isDead()) {
       // A dead PHI's live range begins and ends at the start of the MBB, but
       // the lowered copy, which will still be dead, needs to begin and end at