diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-08 23:44:45 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-08 23:44:45 +0000 |
commit | 1224312f5bd4cbbba11588baef5631037d117379 (patch) | |
tree | 6948c39110ade35c6d2b6025860a5fe0059699b4 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 702b732d6fd2ebab301d5abeedc130b8a3aef9bb (diff) | |
download | bcm5719-llvm-1224312f5bd4cbbba11588baef5631037d117379.tar.gz bcm5719-llvm-1224312f5bd4cbbba11588baef5631037d117379.zip |
Reintroduce VirtRegRewriter.
OK, not really. We don't want to reintroduce the old rewriter hacks.
This patch extracts virtual register rewriting as a separate pass that
runs after the register allocator. This is possible now that
CodeGen/Passes.cpp can configure the full optimizing register allocator
pipeline.
The rewriter pass uses register assignments in VirtRegMap to rewrite
virtual registers to physical registers, and it inserts kill flags based
on live intervals.
These finalization steps are the same for the optimizing register
allocators: RABasic, RAGreedy, and PBQP.
llvm-svn: 158244
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp index 65487136e8c..2c7a427f394 100644 --- a/llvm/lib/CodeGen/CodeGen.cpp +++ b/llvm/lib/CodeGen/CodeGen.cpp @@ -65,6 +65,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) { initializeUnreachableBlockElimPass(Registry); initializeUnreachableMachineBlockElimPass(Registry); initializeVirtRegMapPass(Registry); + initializeVirtRegRewriterPass(Registry); initializeLowerIntrinsicsPass(Registry); initializeMachineFunctionPrinterPassPass(Registry); } |