Remove "localize global" optimization
[oota-llvm.git] / lib / CodeGen / MachineBasicBlock.cpp
index 7bb0d32e6b13021185b4854390ec5c7c197d36c0..563327171289e1c21f05ed665cd4610f79580481 100644 (file)
@@ -351,7 +351,7 @@ MachineBasicBlock::addLiveIn(unsigned PhysReg, const TargetRegisterClass *RC) {
          "Only the entry block and landing pads can have physreg live ins");
 
   bool LiveIn = isLiveIn(PhysReg);
-  iterator I = getFirstNonPHI(), E = end();
+  iterator I = SkipPHIsAndLabels(begin()), E = end();
   MachineRegisterInfo &MRI = getParent()->getRegInfo();
   const TargetInstrInfo &TII = *getParent()->getTarget().getInstrInfo();