We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61a6fe commit 03f73abCopy full SHA for 03f73ab
llvm/lib/CodeGen/RegAllocPBQP.cpp
@@ -36,7 +36,6 @@
36
#include "Spiller.h"
37
#include "Splitter.h"
38
#include "VirtRegMap.h"
39
-#include "VirtRegRewriter.h"
40
#include "RegisterCoalescer.h"
41
#include "llvm/CodeGen/CalcSpillWeights.h"
42
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
@@ -669,9 +668,7 @@ bool RegAllocPBQP::runOnMachineFunction(MachineFunction &MF) {
669
668
DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *vrm << "\n");
670
671
// Run rewriter
672
- std::auto_ptr<VirtRegRewriter> rewriter(createVirtRegRewriter());
673
-
674
- rewriter->runOnMachineFunction(*mf, *vrm, lis);
+ vrm->rewrite(lis->getSlotIndexes());
675
676
return true;
677
}
0 commit comments