diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-23 18:22:28 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-23 18:22:28 +0000 |
commit | 339d24598c243698efed3667feab4db21f2af185 (patch) | |
tree | 01dafcbe4bb5a2392dafa7cc0db5b71e5178d826 /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 7e5c3f018baab49b79a77dacc5a8383cd38f80c4 (diff) | |
download | external_llvm-339d24598c243698efed3667feab4db21f2af185.tar.gz external_llvm-339d24598c243698efed3667feab4db21f2af185.tar.bz2 external_llvm-339d24598c243698efed3667feab4db21f2af185.zip |
Add facility for pre-RA passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index c65a6b9a79..3927eee503 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/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()); |