From 55cf6bfae4f7482ef785624f4296f8546e0a9052 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 22 Nov 2002 22:45:07 +0000 Subject: [PATCH] Enable the register allocator pass. llvm-svn: 4829 --- llvm/lib/Target/X86/X86TargetMachine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp index 50780fa61d55..e316abc5221e 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.cpp +++ b/llvm/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));