summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-04-23 18:22:28 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-04-23 18:22:28 +0000
commit7e859dd7f03f7bcf3b2d9fdfcbbb9b3aebb6926c (patch)
tree1a3724e3d7dbc3f664ca69d7827d364f60e4dde4 /llvm/lib
parent41334635cc23f37cc283824a65a90bed132abfdf (diff)
downloadbcm5719-llvm-7e859dd7f03f7bcf3b2d9fdfcbbb9b3aebb6926c.tar.gz
bcm5719-llvm-7e859dd7f03f7bcf3b2d9fdfcbbb9b3aebb6926c.zip
Add facility for pre-RA passes
llvm-svn: 50165
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index c65a6b9a795..3927eee5035 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -94,6 +94,10 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
if (EnableSinking)
PM.add(createMachineSinkingPass());
+ // Run pre-ra passes.
+ if (addPreRegAlloc(PM, Fast) && PrintMachineCode)
+ PM.add(createMachineFunctionPrinterPass(cerr));
+
// Perform register allocation to convert to a concrete x86 representation
PM.add(createRegisterAllocator());
OpenPOWER on IntegriCloud