[llvm] r175731 - Use getInterval() instead of getOrCreateInterval().

Cameron Zwarich zwarich at apple.com
Thu Feb 21 00:51:55 PST 2013


Author: zwarich
Date: Thu Feb 21 02:51:55 2013
New Revision: 175731

URL: http://llvm.org/viewvc/llvm-project?rev=175731&view=rev
Log:
Use getInterval() instead of getOrCreateInterval().

Modified:
    llvm/trunk/lib/CodeGen/PHIElimination.cpp

Modified: llvm/trunk/lib/CodeGen/PHIElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PHIElimination.cpp?rev=175731&r1=175730&r2=175731&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PHIElimination.cpp (original)
+++ llvm/trunk/lib/CodeGen/PHIElimination.cpp Thu Feb 21 02:51:55 2013
@@ -319,7 +319,7 @@ void PHIElimination::LowerPHINode(Machin
                                     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





More information about the llvm-commits mailing list