[llvm] r185615 - Live-in copies go *after* EH_LABELs.

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jul 3 21:32:36 PDT 2013


Author: stoklund
Date: Wed Jul  3 23:32:35 2013
New Revision: 185615

URL: http://llvm.org/viewvc/llvm-project?rev=185615&view=rev
Log:
Live-in copies go *after* EH_LABELs.

This will soon be tested by exception handling working at all.

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

Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=185615&r1=185614&r2=185615&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Wed Jul  3 23:32:35 2013
@@ -351,7 +351,7 @@ MachineBasicBlock::addLiveIn(unsigned Ph
          "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();
 





More information about the llvm-commits mailing list