Rewrite #3 of machine block placement. This is based somewhat on the
[oota-llvm.git] / lib / CodeGen / PHIElimination.cpp
index 9fd5b0e5770edf0408bf7c0525d31a93f439942e..6994aa58fbd5459099b3e5e5946e906eb3f79071 100644 (file)
@@ -32,7 +32,6 @@
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/Debug.h"
 #include <algorithm>
-#include <map>
 using namespace llvm;
 
 static cl::opt<bool>
@@ -110,6 +109,9 @@ bool PHIElimination::runOnMachineFunction(MachineFunction &MF) {
 
   bool Changed = false;
 
+  // This pass takes the function out of SSA form.
+  MRI->leaveSSA();
+
   // Split critical edges to help the coalescer
   if (!DisableEdgeSplitting) {
     if (LiveVariables *LV = getAnalysisIfAvailable<LiveVariables>()) {