[llvm-commits] [llvm] r144479 - /llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Sat Nov 12 16:02:24 PST 2011


Author: stoklund
Date: Sat Nov 12 18:02:24 2011
New Revision: 144479

URL: http://llvm.org/viewvc/llvm-project?rev=144479&view=rev
Log:
Switch PBQP to VRM's trivial rewriter.

The very complicated VirtRegRewriter is going away.

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

Modified: llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp?rev=144479&r1=144478&r2=144479&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp Sat Nov 12 18:02:24 2011
@@ -36,7 +36,6 @@
 #include "Spiller.h"
 #include "Splitter.h"
 #include "VirtRegMap.h"
-#include "VirtRegRewriter.h"
 #include "RegisterCoalescer.h"
 #include "llvm/CodeGen/CalcSpillWeights.h"
 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
@@ -669,9 +668,7 @@
   DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *vrm << "\n");
 
   // Run rewriter
-  std::auto_ptr<VirtRegRewriter> rewriter(createVirtRegRewriter());
-
-  rewriter->runOnMachineFunction(*mf, *vrm, lis);
+  vrm->rewrite(lis->getSlotIndexes());
 
   return true;
 }





More information about the llvm-commits mailing list