diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2002-11-22 22:45:07 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2002-11-22 22:45:07 +0000 |
commit | f88a2853c859adaba44054190405dea927240032 (patch) | |
tree | 45543fa8ef69d83fba8da088b5c027787ccd80b2 | |
parent | 0721867c8db12995c9db9abe095bf88d5acb9fca (diff) |
Enable the register allocator pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4829 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 50780fa61d..e316abc522 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -36,8 +36,12 @@ bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) { PM.add(createMachineFunctionPrinterPass()); // Perform register allocation to convert to a concrete x86 representation - //PM.add(createSimpleX86RegisterAllocator(*this)); + PM.add(createSimpleX86RegisterAllocator(*this)); + // Print the instruction selected machine code... + // PM.add(createMachineFunctionPrinterPass()); + + // Print the register-allocated code PM.add(createX86CodePrinterPass(*this, std::cerr)); //PM.add(createEmitX86CodeToMemory(*this)); |