Add an isSSA() flag to MachineRegisterInfo.
[oota-llvm.git] / lib / CodeGen / TwoAddressInstructionPass.cpp
index 6d6244e4f879a9f10f90b46679d3860fa71e6f86..dfd258d592ec48a03ea875155898329d9f34763e 100644 (file)
@@ -1041,6 +1041,9 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
   DEBUG(dbgs() << "********** Function: " 
         << MF.getFunction()->getName() << '\n');
 
+  // This pass takes the function out of SSA form.
+  MRI->leaveSSA();
+
   // ReMatRegs - Keep track of the registers whose def's are remat'ed.
   BitVector ReMatRegs(MRI->getNumVirtRegs());