From: Chris Lattner Date: Sat, 5 Jan 2008 06:14:16 +0000 (+0000) Subject: allow sinking to be enabled for the jit X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3c42f1211874665e8ea6eea55a45024b557afa61;p=oota-llvm.git allow sinking to be enabled for the jit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45624 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 15c1d67f3fc..d4533351447 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -193,6 +193,9 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM, if (PerformLICM) PM.add(createMachineLICMPass()); + + if (EnableSinking) + PM.add(createMachineSinkingPass()); // Perform register allocation to convert to a concrete x86 representation PM.add(createRegisterAllocator());